Pages

Sunday, 6 March 2016

Preventing multiple instances of a programme

tasklist.exe | find "example.exe" >NUL & if %errorlevel%==1 "c:\example.exe"
 

No comments:

Post a Comment