开发者

Switch to say "yes" to all questions in a cmd / batch file

开发者 https://www.devze.com 2023-02-23 17:33 出处:网络
I am in need of a command or switch that will answer all queries in a cmd fil开发者_开发技巧e e.g.:

I am in need of a command or switch that will answer all queries in a cmd fil开发者_开发技巧e e.g.:

cacls C:\Users\test.txt /D SYSTEM

Prompts if you are sure you want do perform the action, how would I overcome it?

Any help on this matter would come as a great help


You can simply do this:

echo Y | cacls ...

Reference: CACLS.

0

精彩评论

暂无评论...
验证码 换一张
取 消