Results 1 to 5 of 5

Thread: Hiding the folder

  1. #1
    Guest
    Is there a way to set Hidden attribute to a folder??? Thanks for any help.

  2. #2
    Guest
    Use SetAttr
    Code:
    SetAttr "MyFile", vbHidden

  3. #3
    Guest
    IT won't hide the folder though

  4. #4
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    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

  5. #5
    Fanatic Member
    Join Date
    Jan 2000
    Location
    Nitro
    Posts
    633
    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
  •  



Click Here to Expand Forum to Full Width