简体   繁体   English

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

[英]How to set file permissions in windows through the command prompt mode?

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Windows上通过命令提示符输入对.exe文件的输入? - How to enter input to .exe file through command prompt on Windows? 如何在 windows 命令提示符中设置具有多行文件内容的环境变量 - How to set an env variable with multiline file content in windows command prompt 如何在Windows命令提示符下获取文件? - How to source a file in Windows command prompt? 如何在 Windows 的命令提示符中禁用滚动并返回到写入模式 - How to disable scroll in command prompt in windows and go back to write mode 如何在 Windows 命令提示符下使用被动 FTP 模式? - How to use passive FTP mode in Windows command prompt? 从PHP文件调用Windows程序(通过命令提示符) - calling Windows program from PHP file (through command-prompt) 通过 Windows 10 中的命令提示符将文件打印到打印机或默认打印机 - Print file to printer or default printer through command prompt in windows 10 如何在Windows命令提示符批处理文件中使用嵌套FOR中的SET / A增加数值? - How to increment a numeric value using SET /A inside nested FOR in Windows Command Prompt batch file? 通过 java 在隐藏模式下打开命令提示符 - open command prompt in hidden mode through java 如何通过Windows命令提示符或PowerShell获取USB设备名称 - How to get USB device name through windows Command Prompt or PowerShell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM