Windows 7中对C:\路径的访问被拒绝 [英] Access to C:\ Path is Access Denied in windows 7

查看:286
本文介绍了Windows 7中对C:\路径的访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我正在尝试使用C#将文件保存到本地驱动器上的特定文件夹中.但是我遇到了错误.

我尝试了所有可能性,例如完全控制该文件夹.但没有用.

您能帮我吗,


谢谢Advance

Hi,


I am trying to save files into particular folder on my local drive using C#. But i m getting above error.

I tried all the possibilities like giving full control to that folder. but didn''t work.

Could you please assist me,


Thank you in Advance

推荐答案

除非程序以管理员权限运行,否则无法写入C:驱动器的根目录,您可以在应用程序的目录中设置该权限.显现.也建议您不要在此位置保存文件,而应使用用户或公用文件夹之一.
You cannot write into the root of your C: drive unless the program runs with administrator privilege, which you can set in your application''s manifest. It is also not recommended that you save files in this location, you should use one of the user or public folders.


hi,

为该特定文件夹设置读写模式.


Set read-write mode on for that particular folder.


这篇关于Windows 7中对C:\路径的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆