ASP Drive.FileSystem Property
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.
Syntax:
DriveObject.FileSystem
Example: The below code illustrates the ASP Drive.FileSystem Property.
ASP
<%
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
%>
|
Output:
The file system in use is: NTFS
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...