Link to home
Start Free TrialLog in
Avatar of jmoody
jmoody

asked on

Change file permissions in a batch file

I would like to create a batch file to change folder permissions on a folder and then copy those permissions to all of the files and folders below it. Is that possible in a simple batch file?
ASKER CERTIFIED SOLUTION
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jmoody
jmoody

ASKER

Thanks. Is this by default on all winxp computers?
Hello jmoody,

It's on Win XP Professional.
I'd doubt it's on XP Home/media edition but could be wrong.

Regards,

qz8dsw
Xcacls is actually a better tool - with more options:
http://support.microsoft.com/kb/825751
http://support.microsoft.com/kb/318754
The only issue is that this would have to be distributed across your network first - i.e. installed before being able to be used in a batch file.
xcacls is unsupported so I would advise caution before using.