Page 1 of 1
Get process parameter
Posted: Tue Mar 20, 2012 9:26 am
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
Re: Get process parameter
Posted: Tue Mar 20, 2012 9:46 am
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...
Re: Get process parameter
Posted: Thu Mar 22, 2012 9:47 am
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.
Re: Get process parameter
Posted: Thu Mar 22, 2012 10:41 am
by madshi
I know what you mean. Have you read my comment? It still stands. E.g. IProcess.GetCommandLine.