Previous PageNext Page

7.17.8 Drive Property

Returns the drive letter of the drive on which the specified folder resides. Read-only.
 

Syntax

object.Drive

object
A Folder object.

Remarks

On UNIX system, the Drive property is always "/".
 
The following code illustrates the use of the Drive property on Windows NT systems:
 

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

Previous PageTop Of PageNext Page