What is the ASP drive object?

If we want to get the information about a local hard disk or the network, we can use the ASP drive object.

The ASP drive object returns the serial number, volume, free space, total space, and drive type.

Below are some of the properties involved:

Properties

  • TotalSize: This returns the total size of a specified drive in bytes.

  • SerialNumber: This returns the unique decimal serial number of a specified drive.

  • ShareName: This returns the network share name of the specified drive.

  • VolumeName: This returns the volume name of a specified drive.

  • Path: This returns the path of a specified file. The format for the path is an uppercase letter followed by a colon.

  • RootFolder: This returns the root folder of a specified drive.

  • AvailableSpace: This returns the available space in bytes on a specified file.

  • DriveType: This returns the type of the specified drive.

  • DriveLetter: This returns an uppercase letter that will identify the local drive or network share.

  • FreeSpace: This returns the amount of space available in bytes on a specified file.

  • FileSystem: This returns the file system in use for a specified drive.

  • IsReady: This returns true if the specified drive is ready to use. If not, it returns false.

New on Educative
Learn to Code
Learn any Language as a beginner
Develop a human edge in an AI powered world and learn to code with AI from our beginner friendly catalog
🏆 Leaderboard
Daily Coding Challenge
Solve a new coding challenge every day and climb the leaderboard

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved