Discussion Locked
Hide folders
0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How do I hide and show folders from dos and windows with visual basic
Web Development
by sl-campbell
Use the SetAttr function:
SetAttr pathname, attributes
Constants for attribute are:
vbNormal =0
vbReadOnly =1
vbHidden =2
vbSystem =4
vbArchive =32
So:
SetAttr mypath & myFileName, vbHidden
Or for setting more than one:
SetAttr mypath & myFileName, vbHidden + vbArchive
This discussion is closed to new replies.
Sort by Trending