Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Hide Folder

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,61101
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Hide Folder
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Hide Folder - 6/5/2008 8:06:59 PM   
  BMeX

 

Posts: 6
Score: 0
Joined: 12/10/2007
Status: offline
Hello Everybody!

How can I hide a folder with vbscript? Does anybody know a HowTo?

Thanks,
BMeX
 
 
Post #: 1
 
 RE: Hide Folder - 6/5/2008 8:33:33 PM   
  TKS


Posts: 187
Score: 0
Joined: 5/16/2008
Status: offline
Hi, this should help:

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("C:\FSO")
If objFolder.Attributes = objFolder.Attributes AND 2 Then
objFolder.Attributes = objFolder.Attributes XOR 2
End If

(in reply to BMeX)
 
 
Post #: 2
 
 RE: Hide Folder - 6/5/2008 11:39:01 PM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
Here is a function that I use to hide a folder



      

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to TKS)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Hide Folder Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts