ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods







METHOD:  FileSystemObject.GetTempName

object.GetTempName

This method is used to generate a random filename for a temporary file.

Code:
<%
dim filesys, tmpname, tmpfile
Set filesys = CreateObject("Scripting.FileSystemObject")
Set f = filesys.GetSpecialFolder(2)
Response.Write ("The path to your System folder is '" & f & "'." )
%>

Output:
"The path to your System folder is 'C:\WINNT\system32'."