Batch file help

Soldato
Joined
17 Dec 2004
Posts
8,743
Here's my batch file, but I need steam to quit after the game closes so it will run KeyboardLeds again. Any ideas?
taskkill /F /IM KeyboardLeds.exe > NUL
steam -applaunch 310560
start "KeyboardLeds" /high KeyboardLeds.lnk
 
You've probably got little chance of doing this easily. I would imagine you'd want to look for a log file that steam updates when the game/steam closes. When your script sees that, (filename, date time, etc) then start keyboardled
 
Have you tried the start /wait command for running the game?

@Echo off
taskkill /F /IM KeyboardLeds.exe > NUL
start /wait steam -applaunch 310560
steam -shutdown
start "KeyboardLeds" /high KeyboardLeds.lnk

Alternatively, make the script for running KeyboardLEDs, not Steam.

@Echo off
steam -shutdown > nul 2> nul
start "KeyboardLeds" /high KeyboardLeds.lnk
 
Have you tried the start /wait command for running the game?

@Echo off
taskkill /F /IM KeyboardLeds.exe > NUL
start /wait steam -applaunch 310560
steam -shutdown
start "KeyboardLeds" /high KeyboardLeds.lnk

Thanks, I have tried that but steam still wont close after quitting the game.
 
Steam does have a script option but I can't find much about it. Maybe you can put the applaunch and shutdown commands in a steam script?
 
Back
Top Bottom