GetLongPathName()
Summary
Returns the full, long pathname for a file.
Syntax
long_name = GetLongPathName(string file_name)
| Argument | Contents |
|---|---|
| file_name | Short or long pathname of the file |
Returns
Returns the full, long pathname for the file.
Error Codes
| Error Type | Meaning |
|---|---|
| Error | The specified file does not exist |
Notes
-
The input filename can be short, with tildas, in 8.3 format.
-
With GetShortPathName(), these GISDK functions are for compatibility with older applications that cannot handle filenames longer than the old 8.3 naming convention.
-
You can use GetLongPathName() on any path, including folders.
-
If you need to figure out what the folder path is, you can use SplitPath() first.
Example
folder = RunMacro("G30 Tutorial Folder")
short_name = "customer.dbf"
file_name = folder + short_name
long_name = GetLongPathName(file_name)
ShowMessage("The long pathname for " + short_name + " is " + long_name)
See Also
| Function | Summary |
|---|---|
| CompactPath() | Shortens a file pathname to the listed length for purposes of display |
| GetShortPathName() | Returns the short pathname for a file |
| SplitPath() | Splits a path and filename into its component parts |