Same executable but two different application running

July 12, 2012 at 11:52:57
Specs: Windows Server 2008
There are same executables(.exe) files but different applicaiton running on the server only the parameters are different which are set i nthe properties.

i want to check if one process is already running then it should check in the logfile and tell that abc.exe for test applicaiton is already running please start the another process abc.exe for test1 applicaiton. and how to write for/if loop to check it.


See More: Same executable but two different application running

Report •

#1
July 12, 2012 at 11:54:53
tasklist /FI "IMAGENAME eq notepad.exe" /FO CSV > search.log
FOR /F %%A IN (search.log) DO IF %%~zA EQU 0 GOTO end
start notepad.exe
:end

del search.log

This code i am using to test the processes are running, same way i want to check for the second process


Report •
Related Solutions


Ask Question