AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de archivos externos
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: wd290std.dll
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 22/08/2022

Señalar un error o enviar una sugerencia | Ayuda local