Batch Files: Run exes asynchronously
Posted 07 September 2006 - 03:22 PM
but that does not work if I'm using the batch file from an iexpress package. Any other ways you know to get both exes running at the same time using a batch file?
Posted 07 September 2006 - 06:54 PM
echo Set WshShell = WScript.CreateObject("WScript.Shell") >> file.vbs echo WshShell.Run("%windir%\notepad.exe") >> file.vbs echo WshShell.Run("%windir%\system32\calc.exe") >> file.vbs file.vbs
The idea is to use commands to create a VBScript file that will do the launching, then execute that synchrously.
Hope this was helpful, as I have found your tut's helpful
Posted 08 September 2006 - 10:13 AM
echo Set WshShell = WScript.CreateObject("WScript.Shell") > file.vbs echo WshShell.Run("putty.exe") >> file.vbs echo WshShell.Run("vncviewer.exe") >> file.vbs wscript file.vbs pause
Thanks, I'll be sure to give you shouts in the video. If anyone has a easier way give me a yell.
Posted 08 September 2006 - 10:51 AM
file1.exe | file2.exe | file3.exe
and the 3 files will be started simultaniously
file1.exe file2.exe file3.exewould cause file2.exe to be started after file1.exe closed.
haven't tested this using an iexpress package though.
Edited by DanielG, 08 September 2006 - 10:55 AM.
Posted 08 September 2006 - 11:15 AM
Posted 08 September 2006 - 12:02 PM
Posted 08 September 2006 - 12:06 PM
after seeing your tutorial i've been messing around with Iexpress.
I've found a way to start the 2 files at the same time but it requires cmd.exe (which is on XP anyways).
iexpress.gif 31.04K 290 downloads
The command in the second picture is "cmd.exe /C file1|file2|file3" etc.
The "hidden" option in the third picture is because it will hide the command prompt window when cmd.exe is called.
Edited by DanielG, 13 September 2006 - 10:21 AM.
Posted 14 September 2006 - 01:32 AM
As far as I can remember, if you start exes via a shortcut in a batch file, it should load them all at once, although piping as shown above seems easier
Ya I use
and the "start" command sometimes will just open up a cmd window I dont know what causes it something about the exe.
You can also check out CAX.EXE
I am a total noob so I use winbatch for silly apps
CAX.EXE owns all ...
Posted 29 October 2006 - 05:13 PM
Refining it futher:
cmd /C start notepad | start mspaint
This will allow cmd.exe to exit so that it won't appear in task manager
BinRev is hosted by the great people at Lunarpages!