Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > getTempPath() |  |

getTempPath()

Syntax

    file("folderPathName").getTempPath( {[#extension: ".aaa", #create: TrueOrFalse]} )

Description

Multiuser Server server-side function; returns a file name that is unique in the specified folder. To create a file with the name, pass the optional parameters as a property list. The `#extension` property is the three-character string to be used as the file name extension. Always include a dot (.) with the file extension. Set the `#create` property to `TRUE` to create a file with the name.

The `folderPathName` can be an absolute path name or it may be relative to the server application. An error code of 1 is returned if the specified `folderPathName` is invalid.

Example

This server-side statement creates a file on the server computer with the name Tempimage.bmp:

    file("C:\Images\Tempimage").getTempPath([#extension: ".bmp", \ #create: 1])