Schedule looping batch file in CMC

Hi Gurus,

I have a dilema where when I try to schedule a batch file with loop, it only executes the batch file once and does not loop. Is this a bug in BusinessObjects or a limitation? Below is that script that I tried to run.

@echo off

timeout /t 300 /nobreak

set /a x=0

:loop

echo Loop number -^> %x%

set /a x=%x%+1

echo.>“C:\FILEEVENT.TXT”

timeout /t 300 /nobreak

echo This will run and replace FILEEVENT.TXT every 5 minutes for 15 hours

if %x% NEQ 180 goto loop

exit


jvmauricio :philippines: (BOB member since 2009-08-03)

BO doesn’t actually execute batch scripts itself – it will just invoke cmd.exe.

That said, I’m not sure what’s causing your problem. Are you certain it is executing once? I would try adding more code to send the current value of %x% to another file so you can monitor it.


joepeters :us: (BOB member since 2002-08-29)