Thread
:
SysAdmin's, How to Get Process ID on Windows?
View Single Post
07-23-2009, 10:35 AM
pstation
Confirmed User
Join Date: Jul 2003
Location: chicago
Posts: 1,135
no need to rewrite it entirely.
you can just run something like ...
powershell "$p = [diagnostics.process]::start('calc.exe');echo $p.Id"
straight from cmd.exe or your batch file and it'll start the process and spit out the pid
pstation
View Public Profile
Find More Posts by pstation