Batch Files: Run exes asynchronously
#1
Posted 07 September 2006 - 03:22 PM
start notepad.exe
start calc.exe
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?
#2
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
#3
Posted 07 September 2006 - 07:12 PM
#4
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.
#5
Posted 08 September 2006 - 10:51 AM
file1.exe | file2.exe | file3.exe
and the 3 files will be started simultaniously
whereas
file1.exe file2.exe file3.exewould cause file2.exe to be started after file1.exe closed.
[edit]
haven't tested this using an iexpress package though.
[/edit]
Edited by DanielG, 08 September 2006 - 10:55 AM.
#6
Posted 08 September 2006 - 10:56 AM
#7
Posted 08 September 2006 - 11:15 AM
#8
Posted 08 September 2006 - 12:02 PM
#9
Posted 08 September 2006 - 12:06 PM
[edit]
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 downloadsThe 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.
#10
Posted 13 September 2006 - 10:39 AM
#11
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
start file.lnk
start file.lnk
start file.lnk
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 ...
#12
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!











