GetTempFileName

Creates a uniquely named zero-byte temporary file on disk and returns the full path of that file. Returns a String containing the full path of the temporary file.


Syntax

FileSystem.GetTempFileName()


Example

Sub Main()

MsgBox "The temp file is located at: " & vbCrLf & vbCrLf & FileSystem.GetTempFileName()

End Sub