|
Answer» How can you use cacls so when its asking"Are you sure yes/no" it atoumatically would SAY yes, without the user input There are no SWITCHES for this. Try writing a script to do this directly.
Happy Scripting. What about the /yes command. Ive seen it for other commands, but not sure if itll work for cacls. Thnx in advanceCACLS is used to list or modify the discretionary access control list. My research turned up nothing about a /yes switch. Keep in mind that switches must be programmed into each command. Apparently to CACLS the /yes switch is meaningless.
Specifically, what are you trying to do?
I want the CACLS to run and automatically choose yes when its asking for YES/NOYou could try piping the RESPONSE to CACLS:
echo Y | Cacls.exe or echo yes | cacls.exe
You may have to play around with this, but most (not all) UTILITIES will take input from the pipe.
Hope this helps. THANKS a lot! It worked!
|