|
The VBScript File object provides access to all the properties of a file.
Copies a file from one location to another. | |
Deletes a file. | |
Moves a file from one location to another. | |
Opens a file and returns a TextStream object. |
The attributes of a file. | |
The date and time that the file was created. | |
The date and time that the file was last accessed. | |
The date and time that the file was last modified. | |
The drive letter of the drive on which the file resides. | |
The name of the file. | |
The Folder object for the parent of the file. | |
The file system path to the file. | |
The short name used by programs that require 8.3 names. This property is not currently supported on UNIX. | |
The short path use by programs that require 8.3 names. This property is not currently supported on UNIX. | |
The size, in bytes, of a file. | |
Information about the type of a file. This property is not currently supported on UNIX. |
The following code illustrates how to obtain a File object and how to view one of its properties.
Sub ShowFileInfo(filespec)
Dim fs, f, s
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(filespec)
s = f.DateCreated
Response.Write s
End Sub
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.