newbieScripter
Programmer
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 next line, I would like to do something like
file.WriteLine(primaryApp.CreationDate)
In linux the creation date of a process can be obtained doing something like:
ls -ld /proc/$pid
Anyone have any ideas for vbscripts? I've heard of something called WMI (windows management instrumentation), that supports a creation date property, but from what I've read WMI has to be downloaded and doesn't always come standard with Windows. I need something using strictly the standard VBS stuff that comes with windows. Any ideas, thanks.
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 next line, I would like to do something like
file.WriteLine(primaryApp.CreationDate)
In linux the creation date of a process can be obtained doing something like:
ls -ld /proc/$pid
Anyone have any ideas for vbscripts? I've heard of something called WMI (windows management instrumentation), that supports a creation date property, but from what I've read WMI has to be downloaded and doesn't always come standard with Windows. I need something using strictly the standard VBS stuff that comes with windows. Any ideas, thanks.