由网友(缱倦旧时光)分享简介:我如何编程取消C#从目录中的只读属性?解决方案 VAR迪=新的DirectoryInfo(SomeFolder);di.Attributes和放大器; =〜FileAttributes.ReadOnly;How can I programatically remove the readonly attribut...我![文件夹的属性只读为什么改不掉](https://p.xsw88.cn/allimgs/daicuo/20230902/716.png)
如何编程取消C#从目录中的只读属性?
解决方案 VAR迪=新的DirectoryInfo(SomeFolder);
di.Attributes和放大器; =〜FileAttributes.ReadOnly;
How can I programatically remove the readonly attribute from a directory in C#?
解决方案![文件夹的属性只读为什么改不掉](https://p.xsw88.cn/allimgs/daicuo/20230902/716.png)
var di = new DirectoryInfo("SomeFolder");
di.Attributes &= ~FileAttributes.ReadOnly;
相关推荐
最新文章