> If IO.File.GetAttributes(lcfile) <> IO.FileAttributes.ReadOnly Then >console.writeline(lcfile & " is a readonly file") > End If >>So to test a bit further I used this code which returns a value of ReadOnly,Archive
> Dim oattrib As IO.FileAttributes > oattrib = IO.File.GetAttributes(lcfile) >console.writeline(oattrib.ToString) >>
If IO.File.GetAttributes(lcfile) <> IO.FileAttributes.ReadOnly + IO.FileAttributes.Archive Then>
If (IO.File.GetAttributes(lcFile) And IO.FileAttributes.ReadOnly) = IO.FileAttributes.ReadOnly Then