Maptitude GISDK Help

GetTempFileName()

Summary

Generates a valid and unused file name with a given specification.

 

Syntax

name = GetTempFileName(string path)

 

Argument

Contents

path

Null, or a full or partial path, with an optional extension

 

Returns

A string containing a full path, file name, and extension (if specified).

 

Notes

Examples

// In all examples:

// - The temporary file name is shown as "ttt"

// - The user name is shown as "user"

// - The program folder is shown as "C:\Program Files\Maptitude"

tmp = GetTempFileName() // tmp = "C:\DOCUME~1\user\LOCALS~1\Temp\Maptitude\ttt"

tmp = GetTempFileName(".dbf") // tmp = "C:\DOCUME~1\xxx\LOCALS~1\Temp\Maptitude\ttt.dbf"

tmp = GetTempFileName("Temp\\.dbf") // tmp = "C:\Program Files\Maptitude\Temp\ttt.dbf"

tmp = GetTempFileName("\\Temp\\.dbf") // tmp = "C:\Temp\ttt.dbf"

tmp = GetTempFileName("E:\\Temp\\.dbf") // tmp = "E:\Temp\ttt.dbf"

tmp = GetTempFileName("H:\\MyFiles\\MyData\\") // tmp = "H:\MyFiles\MyData\ttt"

 

See Also

Function

Summary

GetRandFileName()

Generates a valid and unused file name with a given specification, but leaves all temporary files open on shutdown

GetTempPath()

Gets the name of the directory used by Maptitude to store temporary files

 

 

©2025 Caliper Corporation www.caliper.com