SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
@echo off set run= tasklist /fi "imagename eq notepad.exe" | find ":" > nul if errorlevel 1 set run=yes if "%run%"=="yes" echo notepad is running if "%run%"=="" echo notepad is not running pause