|
|
1
13
像这样的方法应该会奏效:
当我运行此命令时,会得到以下输出: File: test.bat Attributes: --a------ Read attribute set to: - test.bat is read-write File: test.sql Attributes: -ra------ Read attribute set to: r test.sql is read only File: test.vbs Attributes: --a------ Read attribute set to: - test.vbs is read-write File: teststring.txt Attributes: --a------ Read attribute set to: - teststring.txt is read-write |
|
|
2
7
要测试特定文件,请执行以下操作:
获取读/写文件列表的步骤
要列出所有文件并报告是只读还是读/写:
编辑
Patrick's answer
如果文件名包含,则失败
|