@echo off
process -v | find /i "firefox.exe"
if %errorlevel% equ 0 echo+Process running
if %errorlevel% equ 1 echo+Process not running.& call Firefox.bat
This uses
Process.exe by Craig Peacock and find.exe, a standard Windows utility (equivalent of Grep) to get the process name
(
Read more... )