开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜