How to Remove ReadOnly Attribute on File Using PowerShell?

后端 未结 6 1298
无人及你
无人及你 2020-12-08 01:50

How can I remove the ReadOnly attribute on a file, using a PowerShell (version 1.0) script?

6条回答
  •  眼角桃花
    2020-12-08 02:01

    Shell("net share sharefolder=c:\sharefolder/GRANT:Everyone,FULL")
    Shell("net share sharefolder= c:\sharefolder/G:Everyone:F /SPEC B")
    Shell("Icacls C:\sharefolder/grant Everyone:F /inheritance:e /T")
    Shell("attrib -r +s C:\\sharefolder\*.* /s /d", AppWinStyle.Hide)
    

    thanks for anybody who are helping to solved some problem...and helping this code

    this code is working for me.. to share a folder to every one with read and write permission you can use this in .net

提交回复
热议问题