Skip to content
The Chat Archive
gpt-3.5-turbo-0301· OpenAI WildChat-4.8M (AI2)

Write a batch script which executes an .exe waits until it's finisches, executes a…

  1. 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!"

  2. Assistant

    @echo off start /wait first.exe echo first.exe finished start /wait second.exe echo second.exe finished echo finish!

  3. User

    Change the script to that there is a full path to the .exes contained

  4. 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!

  5. User

    add the start command to each exe

  6. 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!

  7. User

    No I mean pass the parameter start to each exe

  8. 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!

  9. User

    No it should look like first.exe start

  10. 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!

  11. User

    Very nice, thanks

  12. Assistant

    You're welcome! Do let me know if you need any further assistance.