ClassMicrosoft.VisualBasic.FileSystem SyntaxDim result As FileAttribute = GetAttr(pathname)
DescriptionThe GetAttr function retrieves the current set of attributes for a specific file. The return value is the sum of one or more of the following Microsoft.VisualBasic.FileAttribute enumeration values (each of which has a related intrinsic Visual Basic constant):
Usage at a Glance
Version DifferencesVisual Basic 2005 includes My.Computer.FileSystem.GetDirectoryInfo and My.Computer.FileSystem.GetFileInfo methods that provide access to related functionality. See AlsoSetAttr Procedure |