W
Wylie C
I have the following code that creates a folder. After the folder is created,
I want to set the attributes to 'hidden'. I have tried fs.attrib = hidden and
fs.attribute= hidden but get syntax errors. What do I need to do? Thank you.
Dim fs As FileSystemObject 'declare file system object
Set fs = New FileSystemObject 'instantiate object
If Not fs.FolderExists("C:\Program Files\My Bike Log\BikeLogText") Then
fs.CreateFolder "C:\Program Files\My Bike Log\BikeLogText"
End If
I want to set the attributes to 'hidden'. I have tried fs.attrib = hidden and
fs.attribute= hidden but get syntax errors. What do I need to do? Thank you.
Dim fs As FileSystemObject 'declare file system object
Set fs = New FileSystemObject 'instantiate object
If Not fs.FolderExists("C:\Program Files\My Bike Log\BikeLogText") Then
fs.CreateFolder "C:\Program Files\My Bike Log\BikeLogText"
End If