How do you autmatically mark all files read only?

Started by TeaLeaf, May 11, 2004, 12:00:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TeaLeaf

How do you autmatically mark all files read only?  Well, all files in specific folders anyway (not the whole C drive).

Any handy utilities out there that anyone knows about?  I have done the usual google and am obviously using the wrong key words.

System it needs to work on is Win 2000 Server or run remotely from XP Pro machine.

Cheers.

TL.
TL.
Wisdom doesn\'t necessarily come with age. Sometimes age just shows up all by itself.  (Tom Wilson)
Talent wins games, but teamwork and intelligence wins championships. (Michael Jordan)

Zok

its not automatic as such but i run a batch file wthine windows to make files within a directory read only:

attrib z:\dwgs\*.* -r
xcopy y:\dwgs /s/c/h/r/y z:\dwgs
attrib z:\dwgs\*.* +r
pause

TeaLeaf

Yep, I have subsequently discovered the delights of ATTRIB and also the slightly easier variant of select all the contents in a folder and then going to properties and applying the read only to the whole sub-folder set of files :D

I have also found this handy little freeware utility which seems to do exactly what I want.  I can lock files over a certain age and leave the rest free for current work.

Thanks for the answer though Zok ::thumbsup:

TL.
TL.
Wisdom doesn\'t necessarily come with age. Sometimes age just shows up all by itself.  (Tom Wilson)
Talent wins games, but teamwork and intelligence wins championships. (Michael Jordan)