Check if a program (.exe) is running & if not start the program (Windows)

Found this to be a helpful script which when added to a task scheduler in Windows, can check if a process is not running & if not, start the program and exit the script window.

tasklist | find "MapPoint.exe"
if errorlevel 1 start "MapPoint" /B "D:Program FilesMicrosoft MapPoint Europe 2010MapPoint.exe"

Leave a Comment

Your email address will not be published.

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: