GetTempFileNameΒΆ

GetTempFileName creates a name for a temporary file.

ssName = GetTempFileName()
ssTempFileName = GetTempFileName(ssDir)
ssTempFileName = GetTempFileName(ssDir, ssPrefix)

Return Value

ssTempFileName is the temporary file name.

Parameters

ssDir

ssDir is a name of a existing directory where the temp file will be created. Default is the directory designated for temporary files.

ssPrefix

ssPrefix is a prefix string. The function uses up to the first three characters of this string as the prefix of the file name. Default is ~UP.

Comment

When the system shuts down, temporary files whose names have been created by this function are not automatically deleted. To delete a temporary file, use DeleteFile.

History

Version Description
5.0.0 New parameter ssDir and ssPrefix

id-1763451