Create a temporary file name in Windows temp area {****************************************************** function skuGetTempFileName(prefix: string): string; Creates a temporary file name with the given prefix. The Windows temporary folder name is used as the path of the temporary file. Note: Only the first three characters of the prefix are used. Example: tempFile := skuGetTempFileName('FTS'); ******************************************************} function skuGetTempFileName(prefix: string): string; var tempPath, tempFile: string; begin SetLength(tempPath, MAX_PATH); GetTempPath(MAX_PATH, PChar(tempPath)); SetLength(tempFile, MAX_PATH); GetTempFileName(PChar(tempPath), PChar(prefix), 0, PChar(tempFile)); SetLength(tempFile, StrLen(PChar(tempFile))); Result := tempFile; end;