PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Long names
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns the full short path of a file or directory.
// Retrieve the short path of a file
ResShortPath = fShortPath("C:\MyDirectories\Report March 2000.doc")
// fShortPath returns: "C:\MyDir~1\Account~1.doc"
Syntax
<Result> = fShortPath(<File Path> [, <Option>])
<Result>: Character string
  • Short name corresponding to the full path of the file or directory (empty string if an error occurred). If <File Path> ends with a \ character, this character is retained.
  • Empty string ("") if an error occurred. To find out the error details, use ErrorInfo associated with the errMessage constant. An error is generated for example if the specified file or directory does not exist.
<File Path>: Character string (with quotes)
Name and full (or relative) path of the file or directory (up to 260 characters). A UNC path can be used.
Versions 15 and later
This parameter can be in Ansi or Unicode format.
New in version 15
This parameter can be in Ansi or Unicode format.
This parameter can be in Ansi or Unicode format.
<Option>: Optional integer constant
Versions 15 and later
Used to specify the format of function result. By default, fShortPath returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fShortPath is always a character string in ANSI format, the fPathUNICODE constant is only used to store the result in a Unicode character string.
New in version 15
Used to specify the format of function result. By default, fShortPath returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fShortPath is always a character string in ANSI format, the fPathUNICODE constant is only used to store the result in a Unicode character string.
Used to specify the format of function result. By default, fShortPath returns a character string in Ansi format.
fPathUNICODE<Result> will be a character string in Unicode format.

Note: The result of fShortPath is always a character string in ANSI format, the fPathUNICODE constant is only used to store the result in a Unicode character string.
Remarks

Long names

Some operating systems (Windows 3.1 and earlier) do not support the long names. To find out whether a drive supports the long names, use fDriveInfo associated with the fdFileNameSize constant.
Components
WINDEVReports and Queries wd230std.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment