Friday, April 20, 2007

W3WP.exe ProcessID

Ok, so iisapp.vbs will give you the ProcessID of your App Pool, but I wanted to get it in code. 

For future pensieve moments, here's how:

int processID = System.Diagnostics.Process.GetCurrentProcess().Id

(Thanks, Peter) tags: , , ,


Post a Comment

Links to this post:

Create a Link

<< Home