Skip, [red]Be advised:[/red]When Viscounts were guillotined just as they were disclosing where their jewels were hidden, it shows to go that you should... Never hatchet your Counts before they chicken!
If GetAttr("c:\yourfile.txt") And vbReadOnly Then
MsgBox "File is Read-only"
'set to normal
SetAttr "c:\yourfile.txt", vbNormal
'copy the file here
'set back to read-only
SetAttr "c:\yourfile.txt", vbReadOnly
Else
MsgBox "File is not read-only"
End If
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.