ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / External file functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns the full short path of a file or directory.
// Récupération du chemin court d'un fichier
ResCheminCourt = fShortPath("C:\MesRépertoires\Compte-Rendu Mars 2000.doc")
// fCheminCourt renvoie : "C:\MesRep~1\Compte~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.
fUnicodePath<Result> will be a Unicode string.

Note The result of the fShortPath function is always a string in Ansi format, the constant fCheminUnicode constant can only be used to store the result in a Unicode string.
Component: wd300std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help