拒绝访问该路径? [英] Access to the path is denied?

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

问题描述

朋友们,
我要压缩或解压缩文件夹中的文件时遇到以下错误.在将文件从我的桌面上传到ftp服务器时提出了另一个解决方案,同样的问题.我可以通过打开文件的属性窗格来更改文件的访问控制来做到这一点.
但是我想要的是通过代码更改对文件的访问.请给我建议.

错误:拒绝访问路径?

谢谢
Sanjeev

Hi friends,
Im facing the following error while im going to zip or unzip the files in the folder. and same issue raising in another solution while uploading the files from my desktop to ftp server. i can do it by changing the access controls of the file by opening properties pane of the file.
but what i want is change the access of the files through code. please suggest me.

Error: Access to the path is denied?

Thanks
Sanjeev

推荐答案

您需要使用 System.IO命名空间 [^ ]

希望对您有所帮助:)
You need to use System.IO Namespace[^]

hope it helps :)


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

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