Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript File Object DateCreated Property

Returns the date and time that the specified file was created. Read-only.

Syntax: VBScript File Object DateCreated Property

object.DateCreated

Arguments: VBScript File Object DateCreated Property

object

A File object.

Remarks: VBScript File Object DateCreated Property

The following code illustrates the use of the DateCreated property with a file:

Sub ShowFileInfo(filespec)

Dim fs, f, s

Set fs = CreateObject("Scripting.FileSystemObject")

Set f = fs.GetFile(filespec)

s = "Created: " & f.DateCreated

Response.Write s

End Sub

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.