Public Function GetTempFileName( _ Optional ByVal vSuggestPath As Variant _ , Optional ByVal vPrefix As Variant _ ) As String
? GetTempFileName(Null, Null) C:\TEMP\F185.TMP ? GetTempFileName("C:\WINDOWS", Null) C:\WINDOWS\34.TMP ? GetTempFileName("C:\WINDOWS", "ABCDEF") C:\WINDOWS\ABCC1.TMP ? GetTempFileName(Null, "ABCDEF") C:\TEMP\ABCF380.TMPNote: You will likely get different results when you run these examples because the temporary file names are based partially upon the current time.
GetTempPath Function GetTempFileName Function (Windows API)vSuggestPath: A string that suggests the directory in where the temporary file should be created. vSuggestPath defaults to the Windows temporary directory (usually "C:\TEMP" or "C:\TEMP\WINDOWS") if it is missing or Null or cannot be fixed-up to a string. See the Microsoft Windows API documentation for the GetTempFileName function for more details about the suggested path argument.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.