|
-
Nov 6th, 1999, 03:53 AM
#1
Thread Starter
Frenzied Member
Is it possible to hide a directory on the disk??
/ CyberCarsten
-
Nov 6th, 1999, 04:12 AM
#2
Hyperactive Member
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.
-
Nov 6th, 1999, 05:06 AM
#3
-
Nov 6th, 1999, 04:28 PM
#4
Thread Starter
Frenzied Member
Will this also work on the directory and not just the files???
Thanx guys!!
/ CyberCarsten
-
Nov 7th, 1999, 05:49 AM
#5
Hyperactive Member
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
-
Nov 8th, 1999, 02:12 AM
#6
Thread Starter
Frenzied Member
OK..the folder i invissible, but still accesible...
I wanted it to be like Magic Folders...
/ CyberCarsten
-
Jul 5th, 2001, 01:38 PM
#7
Lively Member
Old.
This is an ancient thread!
-
Jul 5th, 2001, 01:41 PM
#8
Banned
Dont do that
Dont reply to old posts. People get confused.
Just a suggestion.
-
Jul 5th, 2001, 01:42 PM
#9
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|