VOOZH about

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

⇱ ASP ShortPath Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP ShortPath Property

Last Updated : 24 Mar, 2021

The ASP ShortPath Property is used to return the short path for the specified file or folder.

Syntax:

  • For File Object:

    FileObject.ShortPath
  • For Folder Object:

    FolderObject.ShortPath

The below examples demonstrate the ASP ShortPath Property.

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

Output:

Full Path: D:\geeksforgeeksfolder\gfglongfilename.txt
Short Path: D:\GEEKSF~1\GFGLON~1.TXT

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

Output:

Full Path: D:\geeksforgeeksfolder
Short Path: D:\GEEKSF~1
Comment
Article Tags: