Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











METHOD:  FileSystemObject.GetFile

Implemented in version 2.0
 
object.GetFile (filename)

This method is used to get the File object for the path that you specify. You can then use the new variable containing the file object to access its various methods and properties. The following code demonstrates this by returning the date the file was created and displaying the details in the browser.
 
Code:
<%
dim filesys, filetxt, f
Set filesys = CreateObject("Scripting.FileSystemObject")
Set filetxt = filesys.CreateTextFile("c:\somefile.txt", true)
Set f = filesys.GetFile("C:\somefile.txt")
Response.Write ("Your file was created on " & f.DateCreated)
%>
 
Output:
"Your file was created on 5/21/99 2:07:21 PM"


 


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