Groups | Blog | Home
all groups > vb.net upgrade > july 2003 >

vb.net upgrade : File Attributes????????????


Dyan
7/1/2003 12:39:10 PM
I need to be able to get the attributes of a file given
the file path/name. There was an API that returned a
value that represented all of the flags (archive, read-
only, etc) that you could use to get each individual
attribute. I've been trying to find ANYTHING that will
return a given attribute (archive, etc) for a file so that
I can set a flag (boolean variable) based on whether or
Joe Glover
7/2/2003 7:31:19 AM
Hi Dyan

Look at the FileInfo class in the System.IO namespace. Its Attributes
property should tell you all you need to know.

HTH
Joe

[quoted text, click to view]

AddThis Social Bookmark Button