Okay so I know nothing really about batch files and I am making one for something. It is a very small batch file which executes two programs and what I want it to do is execute another program (or command) if those programs are no longer running. How do I specify in the batch file "if this program is not running... then... execute this command"???
PS: I know this is basic but I know pretty much nothing...
Here is what I need to be turned into a proper batch:
START "%CD%\Chaoslauncher.exe"
If "Chaoslauncher.exe" is closed off and Starcraft.exe is not running then END BATCH
IF "Starcraft.exe" is running execute:
"%CD%\dc64.exe" -width=800 -height=600 -depth=32 -refresh=60
WHEN Starcraft.exe is closed off and "Chaoslauncher.exe" IS running close off "Chaoslauncher.exe" and execute:
"%CD%\dc64.exe" -width=1600 -height=900 -depth=32 -refresh=60
AND END BATCH
IF "Chaoslauncher.exe" isn't running while "Starcraft.exe" is running end "Starcraft.exe" execute the command:
"%CD%\dc64.exe" -width=1600 -height=900 -depth=32 -refresh=60
THEN END THE BATCH
Also at ALL times keep CMD window hidden.