Gets a Temporary File Name, including the Folder.

The folder will be the Windows Temporary Path, i.e. ISFileUtilities.TempPath. If fileName is blank, the File Name returned will be 'IS' plus 8 random characters. If fileName ends with '*', a random 8 character suffix will be added to the File Name returned. The file name is 'cleaned' using the ISFileUtilities.GetFileNameCleaned function. If the temporary File Name already exists, the name will be updated with '-n' where n is a number starting at 1 and incremented until the file name is unique.

Syntax

ISFileUtilities.GetTemporaryFileName(fileName, [fileExtension], [obsolete_useSessionFolder])

Parameters

NameTypeOptionalByRefDescription
fileName String The Name of the File. Can be blank or have an '*' at the end (see remarks).
fileExtension String Optional The File Extension. If omitted, a value of tmp is assumed.
obsolete_useSessionFolder Boolean Optional Indicates whether to use the Temporary Folder for this Session - this means finPOWER Connect will attempt to clean up (delete) this file when it exits. If omitted, a value of False is assumed.

Return Value

String

A String value.

Member of:
ISFileUtilities
Namespace:
Intersoft.ISRuntime6
Assembly:
ISRuntime6, Version=6.0.3
Target Framework:
.NET 9.0