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!
@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!

