如何在.net中通过编程修改文件或文件夹的访问权限

解决方案 »

  1.   

    不是很清楚  应该和.net中的文件操作类有关系,楼主可以搜索一下file类的相关方法
      

  2.   

    use WMI, see an example here
    http://groups-beta.google.com/group/microsoft.public.dotnet.languages.csharp/msg/755c44276f1d3de1
      

  3.   

    FileInfo File=new FileInfo(string path);
    File.Attributes来试看看!!
      

  4.   

    FileAttributes 中并没有修改文件的访问权限的操作
      

  5.   

    一般情况下
    File.SetAttributes 方法
    FileSystemInfo.Attributes 属性
    FileSystemInfo.Attributes 属性
    够用了。