Look at the FileSystemObject, File Object and the .Attributes attribute of the File Object.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
In that case, what about f.attributes = f.attributes - 1
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
My bad.
The Read-Only Attribute is 1:
If f.Attributes And 1 Then f.Attributes = A.attributes - 1
The values for attribute are:[tt]
Normal 0
ReadOnly 1 R
Hidden 2 H
System 4 S
Volume 8 V
Directory 16 D
Archive 32 A
Alias 64
Compressed 128[/tt]
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.