SetAttrributes

  • Thread starter Thread starter andrew vos
  • Start date Start date
A

andrew vos

I need to find out how to set fileAttributes for a given file.
Apparently FileInfo.SetAttributes works but i dont know how to define
FileAttributes.
For example how do i make a file Hidden, and readOnly.
 
Bit operators.

FileAttribute.Hidden & FileAttribute.ReadOnly

I also think that you can just add the values together (Hidden + ReadOnly).
 
Back
Top