Hello,
PP>> I guess you're out of luck on Windows, unless you find a program
PP>> that allows you to check on command line or via return code the
PP>> existance of a process, like 'ps' does. Than you could write a
PP>> small loop that waits until termination has taken effect.
TM> Anyone else know of something?
VBS will do this very easily. Nowadays, though BAT/CMD files still
have their uses, the preferred way of getting something done in
Windows is WSH (Windows Script Host) and VBS or PERL.
Here's a script that'll run The Bat! as a minmized window, displaying
a message box after The Bat! has finished running:
----------
Dim Wshso : Set Wshso = WScript.CreateObject("WScript.Shell")
Wshso.Run Chr(34) & "C:\Program Files\The Bat!\thebat.exe" &_
Chr(34),2,TRUE
MsgBox "The Bat! has finished running!"
----------
"Chr(34)" is a double quotation mark, necessary to delimit the LFN.
The "2" parameter forces the app to display as a minimized window. The
"TRUE" parameter instructs the script to wait for the app to complete
before continuing.
regards, Andy
________________________________________________________
Current version is 1.61 | "Using TBTECH" information:
http://www.silverstones.com/thebat/TBUDLInfo.html