ASP GetTempName Method
❮ Complete FileSystemObject Object Reference
The GetTempName method returns a randomly generated temporary file or folder.
Syntax
FileSystemObject.GetTempName
Example
<%
dim fs,tfolder,tname, tfile
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set tfolder=fs.GetSpecialFolder(2)
tname=fs.GetTempName
Set tfile=tfolder.CreateTextFile(tname)
Response.write (tfile)
%>
Output:
trb2007.tmp
❮ Complete FileSystemObject Object Reference