|
-
Aug 29th, 2000, 07:02 PM
#1
Is there a way to set Hidden attribute to a folder??? Thanks for any help.
-
Aug 29th, 2000, 07:05 PM
#2
Use SetAttr
Code:
SetAttr "MyFile", vbHidden
-
Aug 29th, 2000, 07:08 PM
#3
IT won't hide the folder though
-
Aug 29th, 2000, 07:55 PM
#4
Fanatic Member
Use some API
Code:
'//Declarations
Public Declare Function SetFileAttributes Lib "kernel32.dll" Alias "SetFileAttributesA" (ByVal lpFileName As String, ByVal dwFileAttributes As Long) As Long
Public Const FILE_ATTRIBUTE_HIDDEN = &H2
'//Set the attribute
SetFileAttributes stPathName, FILE_ATTRIBUTE_HIDDEN
-
Aug 29th, 2000, 08:00 PM
#5
Fanatic Member
After you do either Megatron or Qwerty method, go to Window Explorer and View/Folder Options/the View tab/click on the option button "Do not show hidden or system files"
Chemically Formulated As:
Dr. Nitro
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
|