Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. newbieScripter

    process creation date using pid

    Perfect, thanks again
  2. newbieScripter

    process creation date using pid

    While we are on the subject, I needed to scroll through every process in the system so that I can check to see if their parent process id's match my current pid. That way I can kill it. Will the following query return a list of all the processes for WMI? Thanks For Each colItem In...
  3. newbieScripter

    process creation date using pid

    Cool, I've got it outputting the date now. One last question, do you know what value this is following the decimal point? 20090415135200.765461-240
  4. newbieScripter

    process creation date using pid

    Correct me if I'm wrong but I could probably modify the sql query to look something like: Dim objWMIService, createDate Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2") createDate = objWMIService.ExecQuery("Select CreationDate from Win32_Process...
  5. newbieScripter

    process creation date using pid

    Thanks, guys
  6. newbieScripter

    process creation date using pid

    Sorry bout that, primary app is the path to an executable. So it would read something like this: Dim WshShell, primaryApp Set WshShell = CreateObject("WScript.Shell") Set primaryApp = WshShell.Exec(notepad.exe) Set fso = CreateObject("Scripting.FileSystemObject") Set file =...
  7. newbieScripter

    process creation date using pid

    Greetings, I was wondering if anyone knows how to get the creation date of a process using it's pid? My current script reads something like: Set fso = CreateObject("Scripting.FileSystemObject") Set file = fso.CreateTextFile(dataFilePath, True) file.WriteLine(primaryApp.ProcessID) ' for the...

Part and Inventory Search

Back
Top