PDA

View Full Version : Scripts in batch files


24-Mar-2004, 01:20 AM
I'm trying to write a batch file (which runs BC2 with a script) to automate the process of producing a series of comparison reports. I'm having trouble because BC2 returns before it has finished -- my batch file then looks for the report files but they haven't been written yet.

How can I cause BC2 to wait until it is done, or somehow detect when it is done in my bat file?

-jimc

24-Mar-2004, 04:57 AM
Try using the following:

start /wait {path\}bc2.exe @scriptfile

31-Mar-2004, 03:39 AM
Thanks. Mostly I use XP, but this particular application is on a Win98 machine, and START is, as they say, a non-starter. Oh well, I just put a pause in the bat file.

-jimc

Craig
31-Mar-2004, 09:15 AM
Jim,

What do you mean about START not working? I've done a little looking into this, and it should work under Win98. You may want to try running an antivirus program. One reference I found mentioned that "START /W" doesn't work correctly if you're infected by the Sircam virus.