New
#1
Start a program from a batch file
I'm trying to create a batch file that should
- call another batch file
- start a program and then wait for the program to close
- call another batch file
My goal with this is to work around an issue in Windows 10 where the screensaver won't work when I have my game controllers connected. I already created two batch files where one of them enables my game controllers and the other one disables them. Both these batch files work just fine.
However I now want to create a third batch file that will do what listed above - first call the batch file that will enable my game controllers, then start my program which is an executable and then after I exited out of the program the batch file that will disable my game controllers should be called.
Here's what I've tried but this doesn't work, it will only run the first batch file enabling my game controllers.
Thanks in advance for any help.Code:"c:\util\Game controllers - Enable.cmd" start "P:\Program Files (x86)\Lockheed Martin\Prepar3D v2\Prepar3D.exe" "c:\util\Game controllers - Disable.cmd"