Product Site

8.32. SysGetShortPathName (Windows only)

Returns the short version of the specified path.

Parameter:
path

A relative or a fully qualified path of an existing file or directory.

Returns:

The short version of path, or the null string, if path doesn't exist or the call to the Windows API GetShortPathName fails for any other reason.
Example 8.22. RexxUtil — SysGetShortPathName
say SysGetShortPathName("C:\Program Files")       -- C:\PROGRA~1
say SysGetShortPathName("\windows\explorer.exe")  -- \windows\explorer.exe