THE WORLD'S LARGEST WEB DEVELOPER SITE

ASP GetTempName Method


FileSystemObject Object Reference 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

FileSystemObject Object Reference Complete FileSystemObject Object Reference

COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: