PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 get more details on the error, use ErrorInfo with the errMessage constant. An error is generated for example if the specified file or directory does not exist.
<File path>: Character string
Name and full (or relative) path of the file or directory (up to 260 characters). A UNC path can be used. This parameter can be in Ansi or Unicode format.
<Option>: Optional integer constant
Used to specify the format of function result. By default, fShortPath returns a character string in Ansi format.
fPathUNICODE<Result> will be a Unicode string.

Remark: The result of fShortPath is always an ANSI character string, the fPathUNICODE constant is only used to store the result in a Unicode character string.
Component: wd280std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment