File System Objects (FSO) allow you to work with folders and files.
A Drive object is created using the GetDrive() method of the file system object.
Properties Associated with Drive Object
Item | Description |
AvailableSpace | Returns amount of space available to user on the specified drive or shared network |
DriveLetter | Returns drive letter of a physical local drive or a shared network |
DriveType | Returns value indicating the type of the specified drive |
FileSystem | Returns type of file system in use for the specified drive |
FreeSpace | Returns amount of free space available to user on the specified drive or shared network |
IsReady | Returns status the specified drive |
Path | Returns path for a specified file, folder, or drive |
RootFolder | Returns a Folder object representing the root folder of a specified drive |
SerialNumber | Returns decimal serial number used to uniquely identify a disk volume |
ShareName | Returns shared network's name for a specified drive |
TotalSize | Returns total space of a drive or shared network |
VolumeName | Sets or returns the volume name of the specified drive |
<html> <script language="JScript"> <!-- var drivePath = "C:"; var fileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath)); --> </script> </html>
32.5.Drive | ||||
32.5.1. | Drive | |||
32.5.2. | Drive.AvaliableSpace | |||
32.5.3. | Drive.DriveLetter | |||
32.5.4. | Drive.DriveType | |||
32.5.5. | Drive.FileSystem | |||
32.5.6. | Drive.FreeSpace | |||
32.5.7. | Drive.IsReady | |||
32.5.8. | Drive.Path | |||
32.5.9. | Drive.RootFolder | |||
32.5.10. | Drive.SerialNumber | |||
32.5.11. | Drive.ShareName | |||
32.5.12. | Drive.TotalSize | |||
32.5.13. | Drive.VolumeName |