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.
精彩评论