Retrieves the short path form of the specified path.

GetShortPathName(cFileName)

Parameters

cFileName

The path to be converted.

Note

The name is limited to MAX_PATH (260) characters, it 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

The short path name of the supplied file.

See Also

Reference

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

Used WinApi functions

GetShortPathName