function TempFileName(const Directory: String=''): String
The TempFileName function returns a unique temporary file name for the directory input parameter. If the directory input parameter is blank (''), then the operating system temporary files directory will be used for generating the temporary file name. The return value is a string with the following format:
ewb<Unique 2-digit Hex Number>.tmp
The returned file name is guaranteed to be unique within the applicable directory among all server applications running in the web server, but not guaranteed to be unique outside of that context.
Examples
X := TempFileName; // X is 'C:\Users\User\AppData\Local\Temp\ewbCACF.tmp'