VOOZH about

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

⇱ ASP ShortName Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ASP ShortName Property

Last Updated : 25 Mar, 2021

The ASP ShortName Property is used to get the short name of the specified file or folder on the system.

Syntax:

  • For File Object:

    FileObject.ShortName
  • For Folder Object:

    FolderObject.ShortName
  • The below examples illustrate the ASP ShortName Property.

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

    Output:

    Full Name: alargefilename.txt
    Short Name: ALARGE~1.TXT

    Example 2: The below code illustrates the ASP File.ShortName Property.

    Output:

    Full Name: geeksforgeeksfolder
    Short Name: GEEKSF~1
Comment
Article Tags: