Is it possible to hide a directory on the disk??
/ CyberCarsten
Printable View
Is it possible to hide a directory on the disk??
/ CyberCarsten
Of course! All you need to do is set the folder's properties using the GetAttr Statement if you want to find out if it is currently hidden, and then using the SetAttr Statement to set them.
This example straight out of the vb4 help file:
Code:SetAttr "TESTFILE", vbHidden ' Set hidden attribute.
SetAttr "TESTFILE", vbHidden + vbReadOnly ' Set hidden and read-only
' attributes.
The problem is, sometimes the user chooses to be able to view hidden directories. In these cases, you have to perform a very special and unique trick to hide them completely.
If you need sample code, well, so do I! :(
------------------
Yonatan
Teenage Programmer
E-Mail: [email protected]
ICQ: 19552879
Will this also work on the directory and not just the files???
Thanx guys!!
/ CyberCarsten
Yes, my method should; however according to Yonatan, the only way I know how to make a folder hidden from 'show hidden file' type settings, is by deleting it... hehe :)
OK..the folder i invissible, but still accesible...
I wanted it to be like Magic Folders...
/ CyberCarsten
This is an ancient thread!
Dont reply to old posts. People get confused.
Just a suggestion.
hmm?