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: