How do you get & set the a file's attributes? Namely I'm interested in the read-only property, for I've been trying to change the file's time stamp but it failed as the file was read-only and I previously had to change this manually.
Printable View
How do you get & set the a file's attributes? Namely I'm interested in the read-only property, for I've been trying to change the file's time stamp but it failed as the file was read-only and I previously had to change this manually.
To take the read only off:VB Code:
SetAttr "C:\Test.txt", vbReadOnly
VB Code:
SetAttr "C:\Test.txt", vbNormal
Thanks! Is it possible to check the attribute too? Just to avoid unnecessarily setting it to normal when it is already so.Quote:
Originally Posted by CVMichael
Well, I've just run into the instruction "GetAttr". Forget my previous post.