🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #15162

Re: Hidden Subdirectories

#15162
From: ROY BRABSON
Date: Wed, 14 Jan 1987 02:12
65 lines
2666 bytes
In article <568@pbhyc.UUCP> you write:
>
>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.
>

Yes, you can hide subdirectories (just as you can hide files) and can accesses
them as though they were ordinarry subdirectories.  Below is a small
assembly language program which will do just that.  To create the two .com 
files, type the instructions below into a file named script, using
a pure ASCII text editor.  Then, with Debug.Com on the same diskette, type
DEBUG<SCRIPT.  This will contain two files, HIDE.COM and UNHIDE.COM.  
HIDE.COM will hide either both files and directories, and UNHIDE.COM will
make hidden files or subdirectories visible again.  Remember
when typing in the following to include all blank lines and hit
the return key after each line, including the last.   
NOTE:  Although I would like to take the credit for the following programs, 
       I didn't write them.  I found them in some magazine (can't
       remember which)

-----------------------------------------------------
    N UNHIDE.COM
    A
    MOV BX,80
    INC BX
    CMP BYTE PTR [BX],20
    JZ 103
    MOV DX,BX
    INC BX
    CMP BYTE PTR [BX],D
    JZ 116
    CMP BYTE PTR [BX],0
    JNZ 10B
    MOV BYTE PTR [BX],0
    MOV CX,20
    MOV AL,1
    MOV AH,43
    INT 21
    INT 20

    RCX
    24
    W
    N HIDE.COM
    A 119
    MOV CX,27

    W
    Q

--------------------------------------------------------
Hope you find these useful.  I use these programs to hide all files in
my root directory (config.sys, autoexec.bat, command.com) so that the only
things which show up during a DIR are directories.  I haven't really used it
much on hiding directories, but have tested it and it does work.  Hope you
enjoy them.
-- 
Roy Brabson
Georgia Insitute of Technology, Atlanta Georgia, 30332
uucp: ...!{akgua,allegra,amd,hplabs,ihnp4,seismo,ut-ngp}!gatech!gitpyr!duke
ARPA: duke@pyr.ocs.gatech.edu
Technical Details
Message-ID: <2878@gitpyr.gatech.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!gatech!gitpyr!duke
References: <568@pbhyc.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!gatech!gitpyr!duke
From: duke@gitpyr.gatech.EDU (ROY BRABSON)
Newsgroups: comp.sys.ibm.pc
Subject: Re: Hidden Subdirectories
Message-ID: <2878@gitpyr.gatech.EDU>
Date: Tue, 13-Jan-87 21:12:15 EST
Article-I.D.: gitpyr.2878
Posted: Tue Jan 13 21:12:15 1987
Date-Received: Wed, 14-Jan-87 19:46:51 EST
References: <568@pbhyc.UUCP>
Organization: Georgia Institute of Technology
Lines: 65
Summary: Hiding and Unhiding directories and files