Retrieves the attributes of a file or directory.

GetFileAttributes(cFileName)

Parameters

cFileName

The name of the file for which to retrieve the attributes.

Note

This can be a relative path or only a filename, the VFP function FULLPATH is used to retrieve the fully qualified filename.
The usual VFP search path (SET PATH) is used.

Return Value

A numeric value representing the file attributes.

See Also

Reference

ADirectoryInfo
ADirEx
ADriveInfo
AFileAttributes
AFileAttributesEx
CancelFileChange
CompareFileTimes
CopyFileEx
DeleteDirectory
DeleteFileEx
FindFileChange
GetFileOwner
GetFileSize
GetFileTimes
GetLongPathName
GetShortPathName
MoveFileEx
SetFileAttributes
SetFileTimes

Used WinApi functions

GetFileAttributes