简体   繁体   English

提升C#中的权限,拒绝访问路径'c:\\ Documents and Settings'

[英]elevate privileges in C# , Access to the path 'c:\Documents and Settings' is denied

When I try to access files on my desktop or in some other places from my c# app, it throws an error "Access to the path 'c:\\Documents and Settings' is denied." 当我尝试从我的c#app访问桌面或其他地方的文件时,会抛出错误“访问路径'c:\\ Documents and Settings'被拒绝。” .

If I understand right, it is because my app doesn't have privileges to access certain directories? 如果我理解正确,那是因为我的应用程序没有访问某些目录的权限?

What can I do to elevate such privileges ? 我该怎样做才能提升这些特权?

Thanks! 谢谢!

请参阅此主题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM