How to Remove ReadOnly Attribute on File Using PowerShell?

后端 未结 6 1307
无人及你
无人及你 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 01:57

    Even though it's not Native PowerShell, one can still use the simple Attrib command for this:

    attrib -R file.txt
    

提交回复
热议问题