For the moment I'm using a bat which launch the program. But I would like the bat to run automatically when the program launch.
I did look into the task scheduler but this option seems to be missing.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityFor the moment I'm using a bat which launch the program. But I would like the bat to run automatically when the program launch.
I did look into the task scheduler but this option seems to be missing.
This may work based on your comment of wanting to start a batch file when Chrome is found to be running on your PC.
ECHO OFF
TASKLIST | FIND /I "Chrome.exe"
IF NOT %ERRORLEVEL%==0 EXIT
CALL "C:\Batch\Batchfile.bat"
EXIT
The part that I'm not sure about here is once the batch starts, how you tell the tasklist process to not run any longer to keep launching it.