Sired22 Posted March 14, 2010 Posted March 14, 2010 I'm sorry to disturb you find folks but I'm at my wits end with this. My problem involves getting a list of process's and there module's. i know what your saying right now 'use system.diagnostics' stupid. My problem comes from the fact that i need a FULL list of EVERYTHING with no access denied exceptions. Just catching it and moving on is not an option. My OS I'm developing on is Windows 7 and yes administrator. If you go to run and type 'cmd' and then 'tasklist /m' it seems to do what i cant. Now normally i would be lazy and just reroute the output and parse it but the application must have no outside dependency except what we make for it. Any help would be appreciated. Quote
Administrators PlausiblyDamp Posted March 14, 2010 Administrators Posted March 14, 2010 Is there any reason why you can't just catch the exception and move on? If you write code to loop over the modules and look at which ones throw the access denied exception and then look at the output from tasklist /m you will see that the output from takslist simply puts "n/a" for these entries - so it looks like they are just doing the same thing. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Sired22 Posted March 14, 2010 Author Posted March 14, 2010 (edited) Not true take for instance Explorer.exe tasklist list's all of its modules while it is one of the ones with access denied on my computer. after donwloading and comparing with process explorer task list does return a full list the N/A is because there are none. but how do i get the full list in my program. Edited March 14, 2010 by Sired22 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.