The information in this article applies to:
The CACLS.EXE command line utility does not provide a /Y switch that automatically answers with Y for Yes to the ARE YOU SURE? Y/N prompt. However, you can use the echo command to pipe the character Y as input to the ARE YOU SURE? Y/N prompt when you call CACLS.EXE in a batch file. To programmatically answer with Yes to the ARE YOU SURE? Y/N prompt during batch file execution, use the following command line in your batch file: echo y| cacls <filename> /g <username>:<permission>NOTE: Do not type a space between the "y" and the pipe symbol (|), otherwise, CACLS.EXE fails to make the permission changes. vertical bar Additional query words: prodnt 3.50 3.51 bypass skip confirmation
Keywords : ntgeneral nthowto |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |