You are not logged in.

#1 26 Mar 2007 21:56

222fbj
Member
Registered: 26 Mar 2007
Posts: 2

How to pause until a Run (prog) command finishes?

I'm an XP batch file newbie..so hope this is not a dumb question.... I have a batch file that runs a program, then does a shutdown.   But the shutdown happens almost instantly...does not seem to wait for the program to finish.  (The program is Locate32 - updating the search index).

My PC is setup for 'fast' shutdown I think...it generally closes all apps automatically and shuts down quickly.  I'm not sure if that is part of the problem.  But how do I write the bat file so the 'locate32' command finishes before 'shutdown' runs.?

thanks

Offline

#2 27 Mar 2007 11:52

bluesxman
Member
From: UK
Registered: 29 Dec 2006
Posts: 1,129

Re: How to pause until a Run (prog) command finishes?

start /w "" locate32
shutdown -s

Or whatever shutdown command you are using.


cmd | *sh | ruby | chef

Offline

#3 27 Mar 2007 14:05

222fbj
Member
Registered: 26 Mar 2007
Posts: 2

Re: How to pause until a Run (prog) command finishes?

thank you

Offline

Board footer

Powered by