Is there a way to set Hidden attribute to a folder??? Thanks for any help.
Printable View
Is there a way to set Hidden attribute to a folder??? Thanks for any help.
Use SetAttr
Code:SetAttr "MyFile", vbHidden
IT won't hide the folder though
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
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"