Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!altos!vsi1!teda!netcomsv!resnicks From: resnicks@netcom.COM (Steve Resnick) Newsgroups: comp.os.msdos.programmer Subject: Re: Read-Only Directories in DOS Message-ID: <1991Apr26.164441.3064@netcom.COM> Date: 26 Apr 91 16:44:41 GMT References: <985@uqcspe.cs.uq.oz.au> Organization: Netcom - Online Communication Services UNIX System {408 241-9760 guest} Lines: 32 In article <985@uqcspe.cs.uq.oz.au> dtymon@cs.uq.oz.au writes: > > Is it possible to create read-only directories in DOS ? > > I have tried setting the ReadOnly attribute but all this does is > prevent me from removing the directory but I can still create, edit > and delete files in the directory. > > > Surely all that needs to be done is prevent the file containing the > directory information (ie: name,location,size,date etc) from being > updated. > > Any help on the subject would be much appreciated. > DOS doesn't use files to store directory information. The directory information is stored in the FAT just like other file information. You can set hidden and other attributes on the directory, but they only affect the directory name, not the contents. (Which is too bad IMHO) Cheers! Steve -- ------------------------------------------------------------------------------- resnicks@netcom.com, steve@camphq, IFNA: 1:143/105.0, USNail: 530 Lawrence Expressway, Suite 374 Sunnyvale, Ca 94086