Use DOS FOR loop to modify premissions on files/folders

This assumes your usernames and homdirs are the same for example : user: alfred homedir : alfred

for /F %u in ('DIR /B A*.*') do v:\tools\xcacls.exe %u /T /E /C /G %u:RCWD /y

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>