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

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

Solutions Collecting From Web of "如何通过命令提示符模式在Windows中设置文件权限?"

除了attrib,你可以使用cacls或icacls

http://ss64.com/nt/cacls.html

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