China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-26 08:10
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Little bird asks.. about the problem of the cacls command View 1,777 Replies 5
Original Poster Posted 2007-02-15 23:06 ·  中国 广东 东莞 电信
初级用户
Credits 190
Posts 48
Joined 2006-06-05 12:53
20-year member
UID 56570
Gender Male
Status Offline
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!
Floor 2 Posted 2007-02-16 01:46 ·  中国 上海 黄浦区 电信
金牌会员
★★★★
Credits 4,639
Posts 2,239
Joined 2005-01-30 00:00
21-year member
UID 35785
Gender Male
Status Offline
Please send non-DOS related issues to "Batch Processing Room" or other "Comprehensive Discussion Areas" in the future. Thank you for your cooperation!
Floor 3 Posted 2007-02-17 00:50 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Floor 4 Posted 2007-02-19 04:54 ·  中国 江苏 连云港 电信
高级用户
★★★
前进者
Credits 641
Posts 303
Joined 2007-01-10 02:57
19-year member
UID 76009
Gender Male
Status Offline
Just follow the format "echo y|then followed by your command" and it's okay. Pass Y to the subsequent command.
我相信总有一天,总会遇到一个人可以相濡以沫、相吻以湿!
Floor 5 Posted 2008-02-03 02:00 ·  中国 广东 深圳 电信
新手上路
Credits 27
Posts 16
Joined 2007-12-17 17:49
18-year member
UID 105949
Gender Male
Status Offline
Why can't it be used?
Floor 6 Posted 2010-04-29 23:23 ·  中国 湖北 武汉 教育网
新手上路
Credits 17
Posts 19
Joined 2010-03-22 20:52
16-year member
UID 162805
Gender Male
From 湖北
Status Offline
/c is a switch, I've never seen a switch passed via a pipeline
Forum Jump: