在MS-DOS中更改一组文件的属性

Del*_*lta 2 command-line dos batch-file

MS-DOS命令attrib更改单个文件的属性.如何使用它来更改一组文件的属性?

t0m*_*13b 5

这是您需要的信息

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"结尾的所有文件中删除读取,隐藏,系统和归档属性.