Home > Net >  Please help to solve the online
Please help to solve the online

Time:09-28



C # traversal hard disk type specified. How to deal with permissions problem?

CodePudding user response:

So make a wrong
String [] files=Directory. GetDirectories (" C: \ \ ", "*.jpg," SearchOption. AllDirectories);

CodePudding user response:

Use the account login system with administrator privileges, or directly open the administrator account, the problem is not the development problems but configuration problem, if can use the code to solve the problem is that a hacker,

CodePudding user response:

https://blog.csdn.net/lindexi_gd/article/details/100174827

CodePudding user response:

You running visual studio with local admin?

CodePudding user response:

GetDirectories isn't used to retrieve the file...

CodePudding user response:

Another, don't read the Documents and Settings, it is the users directory points, only for the use of compatible
  •  Tags:  
  • C#
  • Related