Open In App

ASP Drive.FileSystem Property

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.

Syntax:



DriveObject.FileSystem

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
%>

Output:



The file system in use is: NTFS
Article Tags :