Get process parameter

delphi package - easy access to kernel objects etc.
Post Reply
ira
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Get process parameter

Post by ira »

I want to enumerate all running processes. I create a vbs file and execute it. Can get the process path of vbs file instead of getting wscript.exe? Any clue?

Thanks
madshi
Site Admin
Posts: 10365
Joined: Sun Mar 21, 2004 5:25 pm

Re: Get process parameter

Post by madshi »

Maybe it's in the wscript.exe command line? Or is there only the vbs file name without the path? If so, maybe the process work directory will help? Don't know, just thinking out loud...
ira
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Re: Get process parameter

Post by ira »

I mean, I only get c:\windows\system32\wscript.exe but I need the path of vbs file. My purpose is if the active processes contain running specific vbs file, my program will terminate wscript.exe. Just wanna know if I miss about madkernel that can list the process's parameter or not.
madshi
Site Admin
Posts: 10365
Joined: Sun Mar 21, 2004 5:25 pm

Re: Get process parameter

Post by madshi »

I know what you mean. Have you read my comment? It still stands. E.g. IProcess.GetCommandLine.
Post Reply