auto agree in using CACLS Command + Answer [solved]
Posted: 29 Oct 2011 01:39
i'm making 2 batch files to lock and unlock a folder using Cacls command like that:
The lock batch:
The Unlock batch:
i want to put that command in the patch file but it ask for yes or no
is there a way to put the answer with the command so i don't have to answer the question every time ... thanks
The lock batch:
Code: Select all
cacls c:\myfolder /d Admin-PC
The Unlock batch:
Code: Select all
cacls c:\myfolder /P Admin-PC:F
i want to put that command in the patch file but it ask for yes or no
is there a way to put the answer with the command so i don't have to answer the question every time ... thanks