1.

Solve : If not running?

Answer» HELLO,

I would like to create a batch that checks a a file is RUNNING let say abc.exe and if it is goto :ab.

Thank You

AlmnQuote
If not running

Quote
let say abc.exe and if it is

Confusion reigns; I went with if NOT running. Change to errorlevel 0 if I GOT it wrong.

CODE: [Select]for /f %a in ('tasklist ^| findstr /i "abc.exe"') do if errorlevel 1 goto ab

8-)

Posted code is for XP Pro.


Discussion

No Comment Found