[comp.sys.ibm.pc] Hidden files

downey@husc4.harvard.edu (christopher downey) (01/15/87)

Keywords:


Someone recently posted a nice little utility to hide files or subdirectories
and to also unhide those that are hidden (HIDE.COM and UNHIDE.COM).  These are
very nice, but I was wondering if there is another utility around that would
let you do a directory that shows files that are hidden (something similar to
doing an ls -a command on Unix).  I am afraid that with all this hiding of
files, I am going to forget what is hidden.

downey@husc4.harvard.edu (christopher downey) (01/15/87)

Someone posted a nice little utility that allows you to hide files or
subdirectories (HIDE.COM); it also allows you to unhide files or subdirectories
provided you remember the name (UNHIDE.COM).  Does anyone have a hidden file
directory utility (that would work sort of like the ls -a command on Unix)?
I am afraid with all this hiding, I am going to forget what is hidden.

madd@bucsb.bu.edu.UUCP (Jim "Jack" Frost) (01/20/87)

In article <1007@husc6.UUCP> downey@husc4.UUCP (christopher downey) writes:
>Someone posted a nice little utility that allows you to hide files or
>subdirectories (HIDE.COM); it also allows you to unhide files or subdirectories
>provided you remember the name (UNHIDE.COM).  Does anyone have a hidden file
>directory utility (that would work sort of like the ls -a command on Unix)?
>I am afraid with all this hiding, I am going to forget what is hidden.

It's easy to do -- I have several programs that do it.  What you need to
do is use the "FINDFIRST" and "FINDNEXT" functions in DOS.  One of the 
parameters you have to supply to "FINDFIRST" is a search type (like archive
or directory).  There are two kinds of "hidden" files -- system and hidden.
Just look in your Tech Ref manual for the flags and command parameters.
Sorry I can't dump you source to do it, but there's bound to be someone
out there with a tech ref manual handy.  Mine's 150 miles away.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
                   - 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!)

hrs@homxb.UUCP (H.SILBIGER) (01/21/87)

In article <999@husc6.UUCP>, downey@husc4.harvard.edu (christopher downey) writes:
> Someone recently posted a nice little utility to hide files or subdirectories
> and to also unhide those that are hidden (HIDE.COM and UNHIDE.COM).  These are
> very nice, but I was wondering if there is another utility around that would
> let you do a directory that shows files that are hidden .....

A freeware program available from many bbs' that does this,
and many othjer good things, is PCUTIL.

Also, the latest version of DOS 2.1 has a command CHMOD.EXE,
with which you can set all the attributes.

Herman Silbiger homxb!hrs

reintom@rocky2.UUCP (Tom Reingold) (01/22/87)

[]

#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	Howto
#	pcutil.com
# This archive created: Wed Jan 21 11:19:15 1987
export PATH; PATH=/bin:$PATH
if test -f 'Howto'
then
	echo shar: will not over-write existing file "'Howto'"
else
cat << \SHAR_EOF > 'Howto'
Enclosed is a program called PCUTIL.  It does several unrelated things.
I use it to display a sorted directory which includes hidden files.  To use
it as such, type "pcutil sd".  PCUTIL is self-explanatory.  Just type
"pcutil help" for a list of valid commands.

Tom Reingold
SHAR_EOF
fi # end of overwriting check
if test -f 'pcutil.com'
then
	echo shar: will not over-write existing file "'pcutil.com'"
else
uudecode << \SHAR_EOF
begin 664 pcutil.com
MZT^03E5J!4-!9@535YT%34_+!4-/Z`5"12<%5T%&!41)TPI$,M,*4$G:"4U5
M]09$59T'4T2R#%9%J0)(1<8"4T64$P``````````!W``````M##-(:-/`;@`
M"+<`S1"()DL!BL2Q!"0/TN"`Y/#2[*),`0`F3`&Y$``S]K]=`(N$`P$[!747
M'@954%-14E=6_Y0%`5Y?6EE;6%T''\.#Q@3BW(`^70`_=0/I&0&_@0"^@0#H
M30"Z*0*T"<TANC\"M`G-(<._@0"^@0#HD0GHB`GH+P"Z*0*T"<TALB"T`LTA
MOX$`OH$`Z!D`NC\"M`G-(<._@0"^@0#H"`"Z:P*T"<TAP^A9"4ZR)[0"S2'H
M!P"R)[0"S2'#K#P@=`P\#70(BM"T`LTAZ^_#(&ES(&%N(&EN=F%L:60@4$-5
M5$E,)"!O<'1I;VXN($5N=&5R(%!#551)3"!(12!F;W(@;VYL:6YE(&AE;'`N
M#0HD(')E<75I<F5S('1H92!C;VQO<B!M;VYI=&]R('1O(&)E(&%C=&EV92!A
M;F0@:6X@86QP:&$@;6]D92X-"B2ZL0*T"<TAPU!#551)3"!V97)S:6]N(#$N
M,PT*)+K.`K0)S2'##0H@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@
M(%!#551)3"!/4%1)3TY3#0H-"EM.56U=("`@("`@>R!;3TY=(%M/1F9=('T@
M("`@("`@("`@("`@(%M"165P70T*6T-!<%T@("`@("![(%M/3ET@6T]&9ET@
M?0T*("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@("`@6U=!
M:71=("`@("`@('L@6TY=('T-"EM-3VYO(%T-"EM#3VQO<ET@("`@>R!;-#!=
M(%LX,%T@?2`@("`@("`@("`@("`@(%M$55T@("`@("`@("![(%MD.ET@?0T*
M6U-787`@72`@("![(%M#;&5A<ET@6TQO9V]=('T-"B`@("`@("`@("`@("`@
M("`@("`@("`@("`@("`@("`@("`@("`@(%M-55T-"EM$26%L6S)=70T*6T1)
M86Q;,EU=("![(%M477Q;4%T@>'AX+7AX>'@@?2`@("`@("`@6U-%=&-O;&]R
M72`@($9)0DE020T*#0I;5D5R<VEO;ET@("`@("`@("`@("`@("`@("`@("`@
M("`@("`@("!;2$5L<%T-"@T*6U-$:7)=("`@("![(%MD.EU;9FEL96YA;65;
M+F5X=%U=('T@>R!;+T@@+U`@+TY\+T5\+T1\+U-\+U5=('T-"@T*6U!)72`@
M("`@("![($9&?%)\3GQ#?$5\1%-\1%=\57Q#,7Q#,GQ,-GQ,.'Q,,'Q0-GQ0
M.'Q0,'Q.-GQ..'Q#-GQ#.'Q43GQ40WQ35R!])+O<!>1A4"3\YF&Y,@#B_@P"
MYF&Y,@#B_DMUZUCF8<.^;0"L/"!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AN"[/A2*PH#Z"'0=USK$=`3^PNOPBN*L
M/$AT!SQ,=0GK!)"`Q`@ZP,.`^B##6D)'0U)-65<`````````````````````
J````````````````````````````````````````````````````````
`
end
SHAR_EOF
fi # end of overwriting check
#	End of shell archive
exit 0
-- 
Tom Reingold;  The Rockefeller University; 1230 York Av; NY 10021
PHONE: (212) 570-7709 [office]; (212) 304-2504 [home]
ARPANET: reintom@rockefeller.arpa BITNET: REINTOM@ROCKVAX
UUCP: {seismo|ihnp4|yale|harvard|philabs|phri}!cmcl2!rna!rocky2!reintom

davidr@hplsla.UUCP (01/23/87)

I use a  number  of  different  programs  that  allow me to  change  file  and
directory attributes, and to view everything.  The program I like best and use
the most is  ND.EXE  which  allows so many  things  (except  the  changing  of
attributes on a directory, which I ended up writing a program to do).  ND will
display files using wildcards JUST LIKE the DOS DIR command, but will show:

     the files in 1-4 columns, 
     with or without pause on a screenful,
     just those with particular attributes (Hidden, System, etc.),
     will traverse subdirectories,
     display sorted (name, extension, date, etc.),
     display only those since a particular date or time,
     on a color monitor is very colorful (red = hidden, blue = read_only, etc)

and in addition,  will Copy or Delete  files, or Modify file  attributes,  and
more (all in about 16.5K, and quite fast).

Example:  ND *.BAK /SC /D

will  start in the  current  directory,  display  all  *.BAK  files  for  that
directory, and ask if the whole group (if any) should be Deleted, or query the
user about each file  individual  Deletion, or skip this group  entirely,  and
then proceeds through all (if any) subdirectories /SC doing the same thing.

I HIGHLY  RECOMMEND  THIS  SUPERB  PROGRAM.  (My  only  regret  is that it was
apparently written for use on 40 column monitors a couple of years ago for its
default  information,  but only a slight  problem as you can specify  multiple
colums, and by using the NDCONFIG program, one can modify the ND default- such
as number of columns, displaying attributes, pause on screenful, etc.).

By way of additional comment, the program I created quickly in Turbo Pascal to
hide  directories  was taken by  another  programmer  here and  ported to C in
creating a HIDE and a SEEK  program.  We use it on Vectras that have  multiple
users, that when a person logs in (via a batch  program)  the HIDE  program is
run on the /USERS/person directory to un-hide their directory and the files in
that  directory.  And when the person logs out, then their  directory  and its
files are hidden from (normal) viewing by other users.  Quite useful.

waynec@hpsrlc.HP.COM (Wayne Cannon) (01/23/87)

Additional freeware programs available for changing the hidden
and system (and all other) attributes include CHANGE and ALTER.

waynec@hpsrlc.UUCP (01/25/87)

The ALTER program which came with the MS-DOS Utilities package on my HP
machine allows changing any attribute on any file, including
directories.  The CHANGE program will not touch directories.