韩国女星整容后遗症:在dos下能设置共享属性吗?

来源:百度文库 编辑:高校问答 时间:2024/04/28 03:45:14
如果我想在dos下设置某个文件夹的共享,能实现吗?应该怎么操作,最好能用批处理设置.比方我要设置d盘的1,2,3,三个文件的共享属性批处理应该是怎样的?
最好能有个写好的批处理!!

CACLS 命令。
-------------------------------
Displays or modifies access control lists (ACLs) of files

CACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]]
[/P user:perm [...]] [/D user [...]]
filename Displays ACLs.
/T Changes ACLs of specified files in
the current directory and all subdirectories.
/E Edit ACL instead of replacing it.
/C Continue on access denied errors.
/G user:perm Grant specified user access rights.
Perm can be: R Read
W Write
C Change (write)
F Full control
/R user Revoke specified user's access rights (only valid wit
/P user:perm Replace specified user's access rights.
Perm can be: N None
R Read
W Write
C Change (write)
F Full control
/D user Deny specified user access.
Wildcards can be used to specify more that one file in a command.
You can specify more than one user in a command.

Abbreviations:
CI - Container Inherit.
The ACE will be inherited by directories.
OI - Object Inherit.
The ACE will be inherited by files.
IO - Inherit Only.
The ACE does not apply to the current file/directory.