"zappo"
Post by zappo[xpost su it.comp.os.win.xp]
Come faccio in XP in un file batch a lanciare un'applicazione e
proseguire l'esecuzione con i comandi batch successivi senza attendere
la chiusura della finestra dell'applicazione lanciata?
VBS
set oShell = CreateObject("WScript.Shell")
oShell.run"notepad"
WScript.Sleep 500
oShell.SendKeys"aaa"
MsgBox "Irfan is not running"
oShell.run"calc"
WScript.Sleep 500
oShell.AppActivate "Calcolatrice" '(focus)
Windows Script Host
Run Method
Runs a program in a new process.
object.Run(strCommand, [intWindowStyle], [bWaitOnReturn])
[cut]
bWaitOnReturn
Optional. Boolean value indicating whether the script should wait for the program to finish executing before continuing
to the next statement in your script. If set to true, script execution halts until the program finishes, and Run returns
any error code returned by the program. If set to false (the default), the Run method returns immediately after starting
the program, automatically returning 0 (not to be interpreted as an error code).
ecc
f/up su it.comp.os.win.xp
--
Fosco