@echo off REM ******************************************* REM Add File to your Total Commander directory REM ******************************************* Set PRG=Totalcmd.exe set TASK=Totalcmd.exe tasklist /FI "IMAGENAME eq %TASK%" 2>NUL | find /I /N "%TASK%">NUL if NOT "%ERRORLEVEL%"=="0" goto PRG_Start echo. echo. %TASK% is running.. echo. echo. echo. ================================================================ echo. echo. Return = Start single instance - kill task(s) first echo. Key + Return = Start echo. echo. ================================================================ set /P in= if NOT "%in%"=="" goto PRG_Start TASKKILL /F /IM "%TASK%" :PRG_Start start %PRG% %1%2%3%4%5%6%7%8%9 exit