Solved Batch script to run two executable files

February 28, 2014 at 13:51:38
Specs: Windows 7
Hello,

Need some help writing a batch script that would run two executable files 30 seconds apart.
Scenario: The exacutables need to be run in the following directory C:\Program Files\VMware\VMware Tools. The first executable is "TPAutoConnect.exe -d", script should pause for 30 seconds then run "TPAutoConnect.exe -v -q"

Thanks in advance,

Adam


See More: Batch script to run two executable files

Report •

#1
February 28, 2014 at 14:39:15
What version? If it's Win7+, use the TIMEOUT command.
timeout /t 30 /nobreak

How To Ask Questions The Smart Way


Report •

#2
March 2, 2014 at 06:43:15
✔ Best Answer
If you need to wait until the first command is complete you might be able to use call, on the first command closes the other would run with a start.

call TPAutoConnect.exe -d"
start TPAutoConnect.exe -v -q"

::mike


Report •
Related Solutions


Ask Question