如何通过命令提示符模式在Windows中设置文件权限?

时间:2013-09-13 06:30:58

标签: windows command-prompt

如何通过命令提示符模式在Windows中设置相同的文件权限?

1 个答案:

答案 0 :(得分:4)

>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.