Skip to content
Related Articles

Related Articles

ASP Drive.FileSystem Property

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 22 Mar, 2021

The ASP Drive.FileSystem Property is used to return the name of the file system that is used for the particular drive. It returns one of the following values that correspond to their file system.

  • FAT: This is used for removable drives.
  • CDFS: This is used for CD-ROM drives.
  • FAT, FAT32, or NTFS: This is used for hard disks on Windows 2000 or Windows NT.
  • FAT or FAT32: This is used for hard disks on Windows 9x.



Example: The below code illustrates the ASP Drive.FileSystem Property.


dim fs,dr
set fs=Server.CreateObject("Scripting.FileSystemObject")
'Getting the drive to be checked
set dr=fs.GetDrive("d:")
'Getting the file system of the drive
Response.Write("The file system in use is: " & dr.FileSystem)
set dr=nothing
set fs=nothing


The file system in use is: NTFS

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!