View Single Post
Old 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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote