Product Site

8.29. SysGetLongPathName (Windows only)

Returns the long version of the specified path.

Parameter:
path

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

Returns:

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