中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-26 15:49
47,812 topics / 349,910 posts / today 0 new / 48,264 members
其它操作系统综合讨论区 » Little bird asks.. about the problem of the cacls command
Printable Version  1,981 / 5
Floor1 luoxinxin1988 Posted 2007-02-15 23:06
初级用户 Posts 48 Credits 190
My purpose is to use the cacls command to write a batch file to control the access of the 1.txt file. My command is like this:
@echo off
cacls 1.txt /r user /e /t
But when I write like this, this batch file always has the "Do you confirm" option for you to choose...
How can I make the batch file not have this "Do you confirm" option and directly execute the confirm command?
I have debugged no less than 100 times and still don't know how to do it. Please, dear experts, give me some pointers. Thank you!
Floor2 DOSforever Posted 2007-02-16 01:46
金牌会员 Posts 2,239 Credits 4,639
Please send non-DOS related issues to "Batch Processing Room" or other "Comprehensive Discussion Areas" in the future. Thank you for your cooperation!
Floor3 slore Posted 2007-02-17 00:50
铂金会员 Posts 2,478 Credits 5,212
Floor4 oilio Posted 2007-02-19 04:54
高级用户 Posts 303 Credits 641
Just follow the format "echo y|then followed by your command" and it's okay. Pass Y to the subsequent command.
Floor5 sunfeihu Posted 2008-02-03 02:00
新手上路 Posts 16 Credits 27
Why can't it be used?
Floor6 btpg Posted 2010-04-29 23:23
新手上路 Posts 19 Credits 17 From 湖北
/c is a switch, I've never seen a switch passed via a pipeline
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023