Version: 2.0
This method is used to generate a random filename for a temporary file.
It does not create a temporary file, but is used in conjunction with the CreateTextFile method when a temporary file is required.
<%
Dim filesys, tempname, tempfolder, tempfile
Set filesys = CreateObject("Scripting.FileSystemObject")
Set tempfolder = filesys.GetSpecialFolder(2)
tempname = filesys.GetTempName
Set tempfile = tempfolder.CreateTextFile(tempname)
Response.Write ("The temporary file, '" tempfile "', has been created")
%>
"The temporary file, 'rad80F30.tmp', has been
created."