469,927 Members | 1,940 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

Diagnostics.Process.FileName gives me "Access Denied"

Hello,

If I loop through all the processes on my machine, for some processes
I get "Access Denied" when trying to read the file name associated
with the process. Also some other properties are not visible.

Why is this and how can I get around this? If I cannot get around it,
how can I get a process associated with a certain file name? To be
more specific I need the prcoess ID. The process name is not unique so
I think I have to use filename, it is unique in my case.

VS 2008, Windows XP SP 2, NET 3.5

Regards, Michael
Jul 9 '08 #1
0 1156

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by ASP.Confused | last post: by
reply views Thread by ASP.Confused | last post: by
1 post views Thread by Burak SARICA | last post: by
reply views Thread by Burak SARICA | last post: by
2 posts views Thread by =?Utf-8?B?bXVyYWRqYW1lcw==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.