GetTemporaryDirectory()

Syntax

Result$ = GetTemporaryDirectory()
Description
Returns the temporary directory name.

Parameters

None.

Return value

Returns the full path to the temporary directory. It will end with a directory separator ('\' on Windows and '/' otherwise).

It's very unlikely, but if this function fails, it will return an empty string.

Remarks

This directory provides read and write access and should be used to store temporary files. Depending on the operating system and settings, the contents of this directory may be deleted on a regular basis. It is however better to delete temporary files when they are no longer needed and not rely on such automatic cleanup.

See Also

GetCurrentDirectory(), GetHomeDirectory(), GetUserDirectory()

Supported OS

All

<- GetPathPart() - FileSystem Index - GetUserDirectory() ->