ASP DriveExists Method Last Updated : 23 Feb, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report The ASP DriveExists Method is used for returning the Boolean Value which indicates that whether the particular drive will be exits or not. It returns true means the particular drive exits or returns false if the particular drive not exits. Syntax FileSystemObject.DriveExists(drive) Parameter Values drive: It is a required attribute. It specifies a drive letter or a complete path specification. Example: Below example demonstrates the DriveExists Method. ASP <% dim gfg set gfg=Server.CreateObject("Scripting.FileSystemObject") if gfg.DriveExists("d:")=true then response.write("Drive d: exists!") else response.write("Drive d: does not exist.") end If set gfg=nothing %> Output: Drive d: exists Comment More infoAdvertise with us Next Article ASP DriveExists Method M manaschhabra2 Follow Improve Article Tags : Websites & Apps ASP-Methods ASP-Basics Similar Reads ASP FolderExists Method The FolderExists Method in ASP is used for returning the Boolean value which indicates that whether a particular folder exists or not. It returns true means the particular folder exists or returns false if the particular folder not exists.  Syntax: FileSystemObject.FolderExists(foldername) Paramete 1 min read ASP GetDrive Method The GetDrive Method in ASP is used for returning the Drive Object that correspondence to a drive in a specified path. It is a predefined method of the FileSystem Object. Syntax: FileSystemObject.GetDrive(drivespec) Parameter Values: drivespec: It is a required attribute. It can be a drive letter (c 1 min read ASP GetDriveName Method The ASP GetDriveName Method is used to return a string value that specifies the name of the drive for the specified path. It is a predefined method of the FileSystem Object. Syntax FileSystemObject.GetDriveName(path) Parameter Values path: It is a required attribute. It specifies the complete path 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 Drive Property 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 1 min read Like