next up previous contents
Next: name Up: Properties Previous: dateLastModified   Contents

drive

Description

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


Syntax

file.drive


Example

f = new File("c:\\demo\\1.txt");
trace(f.drive);
//output: c:




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.