August 1999
Intermediate to advanced
1488 pages
72h 53m
English
driveobject.FileSystem
The FileSystem property of the Drive object contains the type of file system used by the specified drive.
Listing 9.29 retrieves the file system of the specified drive.
<script language="JScript"> <!-- Hide //Create a string to hold the drive path var drivePath = "C:"; //Create a file system object var fileSysObj = new ActiveXObject("Scripting.FileSystemObject"); //Create a Drive object for drive C var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath)); //Display the file system used by the drive document.write("Drive ",drivePath," uses the "); document.write(drive.FileSystem," file system."); //Hide End --> ... |
Read now
Unlock full access