MS-DOS 命令attrib
更改单个文件的属性。如何使用它来更改一组文件的属性?
最佳答案
这是你需要的信息
Displays or changes file attributes. ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename] [/S [/D]] + Sets an attribute. - Clears an attribute. R Read-only file attribute. A Archive file attribute. S System file attribute. H Hidden file attribute. [drive:][path][filename] Specifies a file or files for attrib to process. /S Processes matching files in the current folder and all subfolders. /D Processes folders as well.
例如,通过使用 '/s' 参数可以匹配文件
attrib -rhsa *.txt /s
这将从以“.txt”结尾的所有 文件中删除读取、隐藏、系统和存档属性。
关于command-line - 在 MS-DOS 中更改一组文件的属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3505662/