Click here to Skip to main content
14,456,102 members
Rate this:
Please Sign up or sign in to vote.
See more:
Please I would like to request for a vbscritpt that can be used to hide more than one folder in more than one location.

What I have tried:

Sub Hide(MyFolder)
    Dim Command,Result,Ws
    Command = "Cmd /c attrib +h " & DblQuote(MyFolder) &""
'wscript.echo Command
    Set Ws = CreateObject("Wscript.Shell")
    Result = Ws.Run(Command,0,True)
End Sub
Function DblQuote(Str)
    DblQuote = Chr(34) & Str & Chr(34)
End Function

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100