The FileSystemObject provides a GetTempName method that returns a temporary file name. The following is the short example, in VBScript on Windows Scripting Host.
' Auto-Generate a File Name
Set objFSO = CreateObject("Scripting.FileSystemObject")
For i = 1 to 10
strTempFile = objFSO.GetTempName
Wscript.Echo strTempFile
Next
–EOF (The Ultimate Computing & Technology Blog) —
Last Post: Bubble Sort in VBScript
Next Post: Using XMLHTTP in VBScript