Write a batch script which executes an .exe waits until it's finisches, executes a…
- User
Write a batch script which executes an .exe waits until it's finisches, executes a second .exe, also waits until it finishes and then writes "finish!"
- Assistant
@echo off start /wait first.exe echo first.exe finished start /wait second.exe echo second.exe finished echo finish!
- User
Change the script to that there is a full path to the .exes contained
- Assistant
@echo off start /wait "C:\Program Files\first.exe" echo first.exe finished start /wait "C:\Program Files\second.exe" echo second.exe finished echo finish!
- User
add the start command to each exe
- Assistant
@echo off start "" /wait "C:\Program Files\first.exe" echo first.exe finished start "" /wait "C:\Program Files\second.exe" echo second.exe finished echo finish!
- User
No I mean pass the parameter start to each exe
- Assistant
@echo off start "" /wait start "C:\Program Files\first.exe" echo first.exe finished start "" /wait start "C:\Program Files\second.exe" echo second.exe finished echo finish!
- User
No it should look like first.exe start
- Assistant
I apologize for my mistake. Here's the corrected script:
@echo off start "" /wait "C:\Program Files\first.exe" start echo first.exe finished start "" /wait "C:\Program Files\second.exe" start echo second.exe finished echo finish!
- User
Very nice, thanks
- Assistant
You're welcome! Do let me know if you need any further assistance.