中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-08-04 21:50
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 请阅读需求,谢谢 查看 791 回复 9
楼 主 请阅读需求,谢谢 发表于 2007-06-05 00:09 ·  中国 浙江 丽水 电信
初级用户
积分 23
发帖 10
注册 2007-06-04 23:04
19年会员
UID 90269
性别 男
状态 离线
批处理或VBS 完成F盘共享权限设置为完全控制 (WIN2000。FAT32格式。ADMIN登录)
谢谢!~
2 很难吗? 发表于 2007-06-05 09:31 ·  中国 浙江 丽水 电信
初级用户
积分 23
发帖 10
注册 2007-06-04 23:04
19年会员
UID 90269
性别 男
状态 离线
很难吗?
3 斑竹99999999999我啊 发表于 2007-06-05 10:36 ·  中国 浙江 丽水 电信
初级用户
积分 23
发帖 10
注册 2007-06-04 23:04
19年会员
UID 90269
性别 男
状态 离线
斑竹99999999999我啊
4 发表于 2007-06-05 10:44 ·  中国 上海 联通
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
没有FAT32测试环境

@echo off
rem 共享F盘
net share test=F:\
rem 对everyone用户添加full contorl权限
cacls F:\ /g everyone:f /e
本帖最近评分记录 (共 1 条) 点击查看详情
评分人分数时间
a11a11a11 +1 2007-06-05 10:58
5 谢谢 发表于 2007-06-05 10:51 ·  中国 浙江 丽水 电信
初级用户
积分 23
发帖 10
注册 2007-06-04 23:04
19年会员
UID 90269
性别 男
状态 离线
非常感谢我试试
6 很好用啊 ,谢谢 发表于 2007-06-05 10:54 ·  中国 浙江 丽水 电信
初级用户
积分 23
发帖 10
注册 2007-06-04 23:04
19年会员
UID 90269
性别 男
状态 离线
忠心谢谢HAT
另外能不能给我解释一下最后一条语句的意思,包括参数
7 发表于 2007-06-05 11:12 ·  中国 上海 联通
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
//另外能不能给我解释一下最后一条语句的意思,包括参数

C:\>cacls /?
Displays or modifies access control lists (ACLs) of files

CACLS filename ]
] ]
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 with /E).
/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.
8 出了点问题 发表于 2007-06-05 11:25 ·  中国 浙江 丽水 电信
初级用户
积分 23
发帖 10
注册 2007-06-04 23:04
19年会员
UID 90269
性别 男
状态 离线
我F原来的共享权限为只读,现在改为完全控制,该怎么做?
9 发表于 2007-06-05 13:01 ·  中国 上海 联通
版主
★★★★★
积分 9,023
发帖 5,017
注册 2007-05-31 19:39
19年会员
UID 89899
性别 男
状态 离线
//我F原来的共享权限为只读,现在改为完全控制,该怎么做?

@echo off
rem 删除原来的共享
net share F:\ /delete
rem 共享F盘
net share test=F:\
rem 对everyone用户添加full contorl权限
cacls F:\ /g everyone:f /e
本帖最近评分记录 (共 1 条) 点击查看详情
评分人分数时间
a11a11a11 +1 2007-06-05 14:09
10 thanks 发表于 2007-06-05 14:09 ·  中国 浙江 丽水 电信
初级用户
积分 23
发帖 10
注册 2007-06-04 23:04
19年会员
UID 90269
性别 男
状态 离线
T Y
论坛跳转: