取下目录只读属性取下、属性、目录

由网友(缱倦旧时光)分享简介:我如何编程取消C#从目录中的只读属性?解决方案 VAR迪=新的DirectoryInfo(SomeFolder);di.Attributes和放大器; =〜FileAttributes.ReadOnly;How can I programatically remove the readonly attribut...我

如何编程取消C#从目录中的只读属性?

解决方案

  VAR迪=新的DirectoryInfo(SomeFolder);
di.Attributes和放大器; =〜FileAttributes.ReadOnly;
 

How can I programatically remove the readonly attribute from a directory in C#?

解决方案 文件夹的属性只读为什么改不掉

var di = new DirectoryInfo("SomeFolder");
di.Attributes &= ~FileAttributes.ReadOnly;

阅读全文

相关推荐

最新文章