Winscripter
  WSH
  Forums
  Downloads
  Books
  Links
  Amazon




Login
Register

© winscripter.com
1998-2004







WSH Forum

Author Thread: ProcessID
bartocc
ProcessID
Posted: Friday, November 24, 2006 7:51 AM (PST)
Hi there ! That's my first message on this forum, so hello every body ! I have 2 questions : - 1 : Is it possible to know the processID of a wsf I execute ? I'd like to write it down to a file to be able to kill it later if necessary. - 2 : If I have several WScript.exe instances running on my box, how can I know which one is related to which wsf file ? Thx in advance for the help§ Cheers, Julien


Comments:

Author Thread:
fbnewtz
ProcessID
Posted: Tuesday, October 14, 2008 11:48 AM (PST)
Do a search for oShell.processid. Through the WMI interface you can see a list of all the processes on your system and that show the pid as well as the command line (not all the time) that was used to run the process. Thanks, Fred



WSH and ADSI Administrative Scripting


Winscripter   |  WSH   |  Forums   |  Downloads   |  Books   |  Links   |  Amazon