ASP Drive Property Last Updated : 25 Mar, 2021 Comments Improve Suggest changes Like Article Like Report The ASP Drive Property is used to return the drive letter name where the specified file or folder resides. Syntax: For File Object: FileObject.Drive For Folder Object: FolderObject.Drive The below examples demonstrate the ASP Drive property: Example 1: The below code demonstrates the ASP File.Drive Property. ASP <% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the given file set f=fs.GetFile("d:\GFG.txt") Response.Write("File resides on drive: ") 'Getting the drive where the file resides Response.Write(f.Drive) set f=nothing set fs=nothing %> Output: File resides on drive: d: Example 2: The below code demonstrates the ASP Folder.Drive Property. ASP <% dim fs,fol set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the required folder set fol=fs.GetFolder("D:\GFG") 'Getting the drive where the folder is stored Response.Write("This folder is on drive " & fol.Drive) 'Getting another folder set fol=fs.GetFolder("F:\Downloads") 'Getting the drive where the folder is stored Response.Write("<br> This folder is on drive " & fol.Drive) set fol=nothing set fs=nothing %> Output: This folder is on drive D: This folder is on drive F: Comment More infoAdvertise with us Next Article ASP DriveType Property M manaschhabra2 Follow Improve Article Tags : Websites & Apps ASP-Properties ASP-Basics Similar Reads ASP DriveType Property The ASP DriveType Property is used to get the type of the given drive. It returns a numeric value between 0 and 5 that specifies the type of drive as given below: 0: This is used for unknown drives.1: This is used for removable drives.2: This is used for fixed drives.3: This is used for network driv 1 min read ASP DriveLetter Property The ASP DriveLetter Property is used to return the upper-case letter that defines the local disk or a network share. Syntax: DriveObject.DriveLetter Example: The below code illustrates the ASP Drive Letter Property. ASP <% dim fs,dr set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getti 1 min read ASP Name Property The ASP Name Property is used for returning and setting the name of a specified file or Folder. Syntax:For File Object:FileObject.Name[=newname]For Folder Object: FolderObject.Name[=newname] Parameter Values:newname: It is an optional attribute. It specifies the new name of the file or folder.Exampl 1 min read ASP IsReady Property The ASP IsReady Property is used to return a boolean value that specifies whether the drive is ready or not. It returns true if the specified drive is ready, otherwise, it returns false. Syntax: DriveObject.IsReady Example: The below code demonstrates the ASP Drive.IsReady Property.  ASP <% dim 1 min read ASP Attributes Property The ASP Attributes Property is used for returning or setting the attributes of the specified file or folder. The attributes are defined with the following numerical values: 0: Normal file1: Read-only file2: Hidden file4: System file6: Folder or directory32: The file has changed since the last backup 2 min read 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. FAT: This is used for removable drives.CDFS: This is used for CD-ROM drives.FAT, FAT32, or NTFS: This is 1 min read Like