I need some help with writing a .bat file to close Y'z Dock, start a game, then restart Y'z Dock once the game is closed.
So far I've got it all working correctly. Y'z Dock ends, game starts, y'z dock starts up again.
But . . . the problem is that once the game is closed and y'z dock started again, the command prompt window doesn't close.
Here is what the code currently looks like:
taskkill /F /IM YzDock.exe
cd\Program Files\Call of Duty
"CoDMP.exe"
"C:\Program Files\Y'z Dock\YzDock.exe"
exit
The command prompt is waiting for yzdock.exe to be ended again before it moves on to the exit command. Is there anyway to get around this so it will execute that command without me having to close yzdock?
TIA,
Tek
Aqua-Soft Forums