i am new to vbscript but i need to write a vbscript to create a new directory and set it attributes to hidden... now i want it shouldn't be shown when user searched for the hidden folders. can someone help how i can achieve this?? here is my small code
Dim objFSO, objFolder, strDiretory,
strDirectory = "E:\logs"
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.CreateFolder(strDirectory)
Set objFolder = objFSO.getFolder(strDirectory)
objFolder.Attributes = 1