JSI Tip 1556. How do I use CACLS in batch?

Jerold Schulman

August 19, 1999

1 Min Read
ITPro Today logo in a gray background | ITPro Today

The CACLS utility does not support a /Y switch to answer Yes to the ARE YOU SURE? Y/N prompt.

In tip 0971, we used the < c:yes.txt syntax.

You can also use the following syntax to answer Y:

echo y| cacls /g :

NOTE: There is no space between the y and the | (pipe).

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like