GetTempName
Il metodo GetTempName dell'oggetto FileSystemObject genera un file o una cartella temporanea e ne restituisce il nome. Vediamo un esempio:
dim fs, tfolder, tname, tfile
' Creo una istanza dell'offetto FileSystemObject
Set fs = Server.CreateObject("Scripting.FileSystemObject")
' recupero il path della cartella dei file temporanei
Set tfolder = fs.GetSpecialFolder(2)
' genero il nome per il file temporaneo
tname = fs.GetTempName
' creo il file temporaneo
Set tfile = tfolder.CreateTextFile(tname)
' stampo a video il nome del file temporaneo
Response.write (tfile)
' Faccio pulizia
Set tfile = Nothing
Set tfolder = Nothing
Set fs = Nothing
');







