VOOZH about

URL: https://www.geeksforgeeks.org/websites-apps/asp-path-property/

⇱ ASP Path Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP Path Property

Last Updated : 24 Mar, 2021

The ASP Path Property is used to get the complete path for a specified file, folder, or drive on the system.

Syntax:

  • For File Object

    FileObject.Path
  • For Folder Object:

    FolderObject.Path

For Drive Object:

DriveObject.Path

The below examples demonstrate the ASP Path Property.

Example 1: The below code illustrates the ASP File.Path Property.

Output:

Complete path for the specified file: d:\GFG\sudo\geeks.asp

Example 2: The below code illustrates the ASP Folder.Path Property.

Output:

The path of the folder is D:\GFG\geeks

Example 3: The below code illustrates the ASP Drive.Path Property.

Output:

The path of the drive is: D:
Comment
Article Tags: