7.17.12 Name Property

Sets or returns the name of a specified folder. Read/write.
Syntax
object.Name [= newname]
- object
- The name of a Folder object. Required.
- newname
- The new name of the specified object, if provided. Optional.
Remarks
The following code illustrates the use of the Name property:
function ShowFileAccessInfo(filespec)
{
var fs, f, s;
fs = new ActiveXObject("Scripting.FileSystemObject");
f = fs.GetFolder(filespec);
s = f.Name + " on Drive " + f.Drive + "<br>";
s += "Created: " + f.DateCreated + "<br>";
s += "Last Accessed: " + f.DateLastAccessed + "<br>";
s += "Last Modified: " + f.DateLastModified;
Response.Write(s);
}
Copyright © 2000 Chili!Soft
|