Drive.FileSystem

JScript3.0+Syntax

							driveobject.FileSystem

Description

The FileSystem property of the Drive object contains the type of file system used by the specified drive.

Example

Listing 9.29 retrieves the file system of the specified drive.

Listing 9.29 Display the File System
 <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 --> ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.