You are here

batch Question

3 posts / 0 new
Last post
Ashes for Tears
Offline
Last seen: 15 years 3 months ago
Joined: 2006-01-11 08:41
batch Question

Hey guys, gots a question for ya. How can I call something in a batch file, wait till it terminates, then execute another command? I've been trying to patch together bits and peices that I've found on the forums, but I think I screwed up something in the syntax, so I scrapped the whole thing. (For me, the 'help' in the command prompt was a little obscure...;)) I've been trying to make a batch that will call PortableOO.o, then delete the OO.o directory in %APPDATA% when it terminates, playing around with 'RD', 'DEL', '/WAIT' (?), and whatnot. Any suggestions?

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 40 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
start /wait

use the start command to do it:

start /wait program.exe

More info on start:
http://www.computerhope.com/starthlp.htm

Sometimes, the impossible can become possible, if you're awesome!

Ashes for Tears
Offline
Last seen: 15 years 3 months ago
Joined: 2006-01-11 08:41
Awesome. Thanks alot. I'll

Awesome. Thanks alot. Smile I'll try it when I get home.

Topic locked