Get process parameter

delphi package - easy access to kernel objects etc.

Get process parameter

Postby ira » Tue Mar 20, 2012 9:26 am

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
ira
 
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Re: Get process parameter

Postby madshi » Tue Mar 20, 2012 9:46 am

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...
madshi
Site Admin
 
Posts: 9265
Joined: Sun Mar 21, 2004 5:25 pm

Re: Get process parameter

Postby ira » Thu Mar 22, 2012 9:47 am

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.
ira
 
Posts: 49
Joined: Mon Dec 14, 2009 6:29 am

Re: Get process parameter

Postby madshi » Thu Mar 22, 2012 10:41 am

I know what you mean. Have you read my comment? It still stands. E.g. IProcess.GetCommandLine.
madshi
Site Admin
 
Posts: 9265
Joined: Sun Mar 21, 2004 5:25 pm


Return to madKernel

Who is online

Users browsing this forum: No registered users and 2 guests

cron