Sytem.IO.File.SetAttributes question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

1.1 .NET running on Windows XP...

I have read only files on my local machine. I want to use the above
SetAttributes to check OFF the readonly attribute for some of those files
because they must be writeable.
How the heck is that done??? There is a ReadOnly constant to set a file to
read only, but no constant to set a file to NOT read only (i.e. writeable).
Any help is appreciated. :-)

Thanks - Hedge
 
Tony,

Get the existing attributes and create a new FileAttributes that has the
ReadOnly bit turned OFF. Then set the attributes.

Chris
 
Back
Top