Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site nicmad.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!uwvax!astroatc!nicmad!brown From: brown@nicmad.UUCP Newsgroups: net.micro.pc Subject: Re: Hiding Files? Message-ID: <501@nicmad.UUCP> Date: Wed, 8-Jan-86 10:52:44 EST Article-I.D.: nicmad.501 Posted: Wed Jan 8 10:52:44 1986 Date-Received: Sat, 11-Jan-86 05:34:41 EST References: <1236@pucc-i> Reply-To: brown@nicmad.UUCP (Mr. Video) Organization: Nicolet Instrument Corp. Madison WI Lines: 36 Keywords: files, security In article <1236@pucc-i> aic@pucc-i.UUCP (Craig Norborg aka Doc Pierce) writes: > > For security purposes at a place I work, we were wondering if it was >possible in ms-dos to make files so that people couldn't write onto them. >One possible way we thought of was just to make the files so they can't >see them by "hiding" them like some of the system files. I know write >protecting a floppy is one way, but this doesn't help with a hard drive. >Any suggestions/help would be greatly appreciated. One way is to use the PC-DOS ATTRIB command, which allows you to change the Read Only attribute. You could also get Norton's Utilites, 3.0+, and use the sector r/w capabilities and manual change the directory entry so that you can hide and read protect the file. A MS-DOS directory entry is like this: Bytes 0-7 Filename 8-10 Extension 11 File Attribute 01h read only 02h hidden file 04h system file 08h filename+ext = volume label (root directory only) 10h subdirectory name 20h archive bit You add up the bits in byte 11 to get the combination you want. Hope this helps. -- ihnp4------\ harvard-\ \ Mr. Video seismo!uwvax!nicmad!brown topaz-/ / decvax------/