![]() |
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-07 12:59 |
48,040 topics / 350,125 posts / today 0 new / 48,252 members |
| DOS批处理 & 脚本技术(批处理室) » [Solved] [NT] Is there a way to make cacls run in quiet mode (automatic response) |
| Printable Version 2,262 / 17 |
| Floor1 jikenjack | Posted 2006-05-14 17:16 |
| 初级用户 Posts 14 Credits 38 | |
|
: Is there a way to make cacls run in silent mode???
[ Last edited by willsort on 2006-5-15 at 21:58 ] |
|
| Floor2 3742668 | Posted 2006-05-14 17:23 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
I don't know what you mean by quiet mode. Does it mean no interaction? Or running in the background?
If it means no interaction, try adding the /c parameter. If you want it to run in the background without displaying, you can refer to Regarding the issue of specifying a program to run in the background |
|
| Floor3 jikenjack | Posted 2006-05-14 17:27 |
| 初级用户 Posts 14 Credits 38 | |
|
cacls d: /g everyone:r
Set hard drive permissions, need Y or N Is there a parameter to make it quiet mode? |
|
| Floor4 tigerpower | Posted 2006-05-14 17:56 |
| 中级用户 Posts 99 Credits 377 | |
|
There is a fun thing called yes, haha, don't blame me for the misoperation oh ; )
for /l %i in (1,1,10) do @copy NUL __%i__.txt yes | del /p __*__.txt Attachments yes.zip (2.81 KiB) |
|
| Floor5 3742668 | Posted 2006-05-14 18:00 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
Oh, try echo y | cacls d: /g everyone:r.
[ Last edited by 3742668 on 2006-5-14 at 18:40 ] |
|
| Floor6 jikenjack | Posted 2006-05-14 18:10 |
| 初级用户 Posts 14 Credits 38 | |
|
Hehe! Thanks, I'll try it and see!
|
|
| Floor7 jikenjack | Posted 2006-05-14 18:43 |
| 初级用户 Posts 14 Credits 38 | |
|
I tried, added the previous parameters, and the subsequent commands didn't work!
Alas! |
|
| Floor8 electronixtar | Posted 2006-05-14 19:33 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Everyone, be serious.
The owner's question has indeed been ignored by many people. The cacls command is the full name ChangeAccessControlListSettings, which is to change the "security" settings of files (folders) on NTFS. After testing: echo y | cacls xxxx cannot succeed. The correct method is: [ Last edited by electronixtar on 2006-5-14 at 21:37 ] |
|
| Floor9 jikenjack | Posted 2006-05-14 20:10 |
| 初级用户 Posts 14 Credits 38 | |
|
Big shot, it still doesn't work! The permission still can't be changed!
|
|
| Floor10 3742668 | Posted 2006-05-14 20:16 |
| 荣誉版主 Posts 718 Credits 2,013 | |
|
For the time being, there is no better method. Just call vbs to sendkeys a "y"
[ Last edited by 3742668 on 2006-5-14 at 20:18 ] |
|
| Floor11 jikenjack | Posted 2006-05-14 20:32 |
| 初级用户 Posts 14 Credits 38 | |
|
Hehe! It seems that full automation can't be done, only semi-automation. Thanks, everyone, guys!
|
|
| Floor12 tigerpower | Posted 2006-05-14 20:38 |
| 中级用户 Posts 99 Credits 377 | |
|
My yes program works, you just didn't try it.
This is also okay: echo y| cacls d: /g everyone:r Only Microsoft would design such a lousy program. You type y + space, and it ignores you :) [ Last edited by tigerpower on 2006-5-14 at 20:45 ] |
|
| Floor13 jikenjack | Posted 2006-05-14 20:39 |
| 初级用户 Posts 14 Credits 38 | |
|
Hehe!! But cacls is generally rarely used!
|
|
| Floor14 electronixtar | Posted 2006-05-14 21:35 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
What the 12th floor said is right. I'm convinced, I'm convinced.
Microsoft's stuff is really too... Well, but not ignoring spaces seems to have its reason. [ Last edited by electronixtar on 2006-5-14 at 21:40 ] |
|
| Floor15 jikenjack | Posted 2006-05-15 17:10 |
| 初级用户 Posts 14 Credits 38 | |
|
Thanks, everyone! The problem has been solved!
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |