1.

Solve : How to Check if a Certain Process is already Running..???

Answer»

is there any code to check if a process is already running from a certain location..??

i need a code like:

IF C:\SYSTEM\SMSS.EXE IS ALREADY RUNNING GOTO END
:END
CLS


tasklist | findstr program.exe && goto end
:end
cls

That checks if program is running, but I'm not ure if that is precisly what you want.is it not possible to check if a process is already running from a specific location..??

If not is there any code that can prevent this same bat-exe from being ran more than once at a time
so if this bat-exe FILE is already running and the same bat-exe gets executed again while the first ONE is running, than this newly executed bat-exe ends itself.


I just need to MAKE my batch file that im compiling into an .EXE so that its only able to be ran in one instance of itself,
and if ANOTHER instance of it tries to be ran at the same time, it wont let it..
is this possible at all with batch or ms-dos..??anybody know of anything that might WORK at all..I think that DeltaSlayer and contrex have addressed this (i.e. running from a certain location) in your other thread (here)



Discussion

No Comment Found