Creating only One Instance of process.

mayur_kovle

New Member
Hello All,

I am having a process running for e.g say "notepad.exe" which is sen in the task manager.
Now I do not want to allow the user to run another instance of process "notepad.exe". i.e the notepad.exe should be allowed to run only once.

Is there any way to check whether the process name "notepad.exe" is already running.

Please Suggest.
 
Name of OS would help.

For WinXP there should be utility by the name tasklist.

You can do a input from :

def var a as char no-undo.
input throgh value("tasklist"):
repeat:
import unformatted a.
message a view-as alert-box.
end.

-Parul.
 
Hi parul,

Thanks for the prompt reply.

I need to do these validations for both WindowsXP and UNIX OS.

Also from where can I get this tasklist utility?
 
Name of OS would help.

For WinXP there should be utility by the name tasklist.

You can do a input from :

def var a as char no-undo.
input throgh value("tasklist"):
repeat:
import unformatted a.
message a view-as alert-box.
end.

-Parul.
Thanks Parul , the above piece of code will solve my problem.
 
Back
Top