Features
      Ask DevGuru
      ASP Resources
      Find the Bug
      Knowledge Base
      Links
      Tips of the Week
      Tutorials
  Products
      dgCalendar
      dgCharge New!
      dgChart New!
      dgFileUpload
      dgReport New!
      dgSort
      dgTree
  Site
      Authoring
      Coming Soon
      DevGuru Resume
      Link to Us
      Merchandise
      Sponsorships
      Testimonials
      What's New
  Technologies
      ADO 2.6
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      Transact-SQL Syntax
      VBScript
      WML
      WMLScript
      WSH
      XML DOM

              











METHOD:  FileSystemObject.GetTempName

Implemented in version 2.0
 
object.GetTempName

This method is used to generate a random filename to use for a temporary file. It does not create a temporary file, but is used in conjunction with the CreateTextFile method when a temporary file is required.
 
Code:
<%
Dim filesys, tempname, tempfolder, tempfile
Set filesys = CreateObject("Scripting.FileSystemObject")
Set tempfolder = filesys.GetSpecialFolder(2)
tempname = filesys.GetTempName
Set tempfile = tempfolder.CreateTextFile(tempname)
Response.Write ("The temporary file, '" & tempfile & "', has been created")
%>


Output:
"The temporary file, 'rad80F30.tmp', has been created."


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information