Windows 7 中的檔案權限變更

Windows 7 中的檔案權限變更

可能的重複:
從命令提示字元更改 Windows 7 檔案權限

如何使用指令更改 Windows 7 中的檔案權限?

答案1

Windows 附帶了一個特殊的命令列實用程序,稱為CACLS.

您可以如下使用它:

CACLS files /e /p {USERNAME}:{PERMISSION}

在哪裡,

* /p : Set new permission
* /e : Edit permission and kept old permission as it is i.e. edit ACL instead of replacing it.
* {USERNAME} : Name of user
* {PERMISSION} : Permission can be:
      o R - Read
      o W - Write
      o C - Change (write)
      o F - Full control

例如,使用下列命令授予 Betty Full (F) 控制權(在 Windows 命令提示字元中鍵入):

C:> CACLS files /e /p betty:f

鍵入以下命令來閱讀完整的幫助:

C:> cacls /?

答案2

您可以使用帶走命令。

看看以下文章:

微軟

七大論壇

相關內容