Click to See Complete Forum and Search --> : How can I "unhide" A file?


November 8th, 1999, 08:17 PM
I was wondering by pressing a command button how I could make some files visible..... you know how the box 'hidden' is checked in file properties how can i uncheck this on multiple files?

Hunter
November 8th, 1999, 10:19 PM
im pretty new myself but i found this and it helped me with the same problem you will want to set your file to vbnormal to "unhide" it

SetAttr Statement Example
This example uses the SetAttr statement to set attributes for a file.

SetAttr "TESTFILE", vbHidden ' Set hidden attribute.
SetAttr "TESTFILE", vbHidden + vbReadOnly ' Set hidden and read-only
' attributes.

Dir, GetAttr, and SetAttr Constants

The following constants can be used anywhere in your code in place of the actual values:

Constant Value Description
vbNormal 0 Normal (default for Dir and SetAttr)
vbReadOnly 1 Read-only
vbHidden 2 Hidden
vbSystem 4 System file
vbVolume 8 Volume label
vbDirectory 16 Directory or folder
vbArchive 32 File has changed since last backup

hunter