Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set files to read only

Status
Not open for further replies.

scriptomatic

Technical User
Sep 21, 2006
3
US
I have a network folder with perhaps a couple hundred subfolders inside. Each subfolder contains a file created by running a form.

Users need rights to generate this file, but we don't want them to modify the letter once created. Since I must give them permissions to write to the folder, I'm looking for a script change every file to read only. Then, run it at least daily to set newly-added files to all subfolders to read only.

Any help would be appreciated.
 
In a console window type: attrib /?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top