Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!umich!srvr1!acc!jal From: jal@acc (John Lauro) Newsgroups: comp.sys.ibm.pc Subject: Re: Hidden subdirectories?? Message-ID: <1990Jun10.184342.21882@caen.engin.umich.edu> Date: 10 Jun 90 18:43:42 GMT References: <6350.266e60ce@jetson.uh.edu> Sender: news@caen.engin.umich.edu (CAEN Netnews) Organization: University of Michigan - Flint Lines: 36 In article <6350.266e60ce@jetson.uh.edu> bchs1b@jetson.uh.edu writes: >Is there any way to change the attribute on a directory or subdirectory >so that it is hidden? I would like a subdirectory not to appear when >someone is casually looking at the disk, but if you CD to the subdirectory >then all the files will be visible. > >Thanks > >MIke Benedik >University of Houston >Benedik@UH.EDU or Benedik@UHOU I have seen a few followups to this mentioning various ways, such as using norton, or the 255 trick, and mdsecret. (The later two not doing exactly what was asked, because it *changes* the name of the directory.) The easiest way I know of is a pd program called chmod.com. It's only about 6k long, and works well for files and directories. This is a retype, so spelling errors are my own: C:\> chmod CHMOD: List or set file attributes. Usage is: CHMOD List attributes. CHMOD + Set attributes. CHMOD - Remove attributes. Attributes are: S == System, R == Read only, H == Hidden, A == Archive, V == Volume ID. Volume ID cannot be changed. Each file is listed with the new or current attrbutes. The specifier may be a full pathname. The nice thing I like about chmod, is that it takes wild cards, and it works on directories too. Sorry, I don't know a archive that has this. (I know I seen it many places.) If you can't find it, mail me and I'll mail a uuencoded copy. - John Lauro john_lauro@ub.cc.umich.edu