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
Get process parameter
Re: Get process parameter
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
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
I know what you mean. Have you read my comment? It still stands. E.g. IProcess.GetCommandLine.