..


Sponsored Links

GetTempName

The method of the FileSystemObject object getTempName generates a temporary file or a folder and returns its name. Here's an example:






 dim fs, tfolder, tnam, TFile







 'I create a FileSystemObject instance dell'offetto







 Set fs = Server.CreateObject ("Scripting.FileSystemObject")









 'Recovery path of the folder for temporary files







 September tfolder fs.GetSpecialFolder = (2)









 'I create the temporary file name for the







 tnam = fs.GetTempName









 'I create the temporary file







 September tfolder.CreateTextFile = TFile (tnam)

 







 'Prints the name of the temporary file







 Response.write (TFile)









 'I cleaned







 September TFile = Nothing







 September tfolder = Nothing







 Set fs = Nothing



In the same category ...
E-Learning
ASP (Advanced) ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €.
ASP Zero (Ebook) ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €.
ASP and Access (Ebook) ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €.
Sponsored Links