I am trying to create script that launches a game, waits till it closes, then runs one final command. Based on my research, I want to use the "/WAIT" flag but it doesn't seem to work :'(. Im on Windows 10 x64 fully updated.
Here is the script:
::FreeSoftwareServers set keymapperdir="G:\JoyToKey\" set keymapper=JoyToKey.exe set p1profile="G:\JoyToKey\BLANK.cfg" set defaultprofile="G:\JoyToKey\Basic.cfg" start /d %keymapperdir% %keymapper% %p1profile% start /WAIT /d "G:\SteamLibrary\steamapps\common\rocketleague\Binaries\Win32" RocketLeague.exe ::pause start /d %keymapperdir% %keymapper% %defaultprofile%
Any ideas on how to accomplish my goal? Or whats not working? I was looking into while loops that look for the exe but that seems overkill and resource wasting. Thanks.