Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!mit-eddie!bu-cs!bucsb.bu.edu!madd From: madd@bucsb.bu.edu.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Hidden Subdirectories Message-ID: <724@bucsb.bu.edu.UUCP> Date: Thu, 5-Feb-87 23:14:10 EST Article-I.D.: bucsb.724 Posted: Thu Feb 5 23:14:10 1987 Date-Received: Sat, 7-Feb-87 17:10:50 EST References: <568@pbhyc.UUCP> <260@skatter.UUCP> Reply-To: madd@bucsb.bu.edu.UUCP (Jim "Jack" Frost) Organization: ODO (Organization for the Disorganization of Organization) Lines: 29 In article <260@skatter.UUCP> kuo@skatter.UUCP (Dr. Peter Kuo) writes: >In article <568@pbhyc.UUCP>, jdf@pbhyc.UUCP (Jack Fine) writes: >> >> Got a question. Can I make a subdirectory hidden like a hidden file? And >> if so, can I then access it like a normal subdirectory? If all this can be >> done, how? >> I think I may be asking a lot but hopefully it can be done. > >You can hide a directory no problem. As long as you don't forget the >name (and read-protect it) you can access it. Hiding directories is accomplished in exactly the same manner as hiding files, from a dos standpoint. You call the dos chmod command (I can never remember the silly function call numbers, so check your tech ref). Tell it to chmod the file and give it "hidden" or "system" attributes. If the "file" turns out to be a directory, dos still doesn't care. As for forgetting the name, it is trivial to tell the find first/find next functions that dos provides to look for hidden/system files. In fact, the only directory printing program I have made displays EVERY file, whether it's hidden or not. It works much like UNIX's ls -al would (showing the file attributes). Since it's so easy to find a "hidden" file, I wouldn't worry about forgetting the name. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - Jim Frost * The Madd Hacker - UUCP: ..!harvard!bu-cs!bucsb!madd | ARPANET: madd@bucsb.bu.edu CSNET: madd%bucsb@bu-cs | BITNET: cscc71c@bostonu -------------------------------+---+------------------------------------ "Oh beer, oh beer." -- Me | [=(BEER) <- Bud the Beer (cheers!)