View Full Version : Scripts in batch files
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
Try using the following:
start /wait {path\}bc2.exe @scriptfile
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.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.