Reputation: 333
In a certain part of my script, I want to run a certain executable, but I can`t do exactly what I want:
1:
"path/to/my/file.exe"
will execute the file perfectly, however, my batch will stop executing until file.exe ends, and that's not what I want.
2:
start "path/to/my/file.exe"
start "path/to/my/file.exe" /b
2.1 will start another cmd window, which I don't want. 2.2 Won't allow my batch script to return, and we're back to 1.
3:
call "path/to/my/file.exe" /b
Back to 1.
So, is there any way of doing what I want? Simply starting an executable and let it run in the background?
Upvotes: 3
Views: 1155
Reputation: 24525
I think you you want
start "" /b "path/to/my/file.exe"
?
Bill
Upvotes: 7
Reputation: 650
The best way would be to run this using WScript:
Set shell = CreateObject ("Wscript.Shell")
shell.Run "cmd /c path/to/my/file.exe", 0, false
Upvotes: 2