ASP ShortName Property Last Updated : 25 Mar, 2021 Comments Improve Suggest changes Like Article Like Report 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. ASP <% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the file set f=fs.GetFile("d:\alargefilename.txt") 'Getting the full name of the file Response.Write("Full Name: " & f.Name) 'Getting the short name of the file Response.Write("<br>Short Name: " & f.ShortName) set f=nothing set fs=nothing %> Output: Full Name: alargefilename.txt Short Name: ALARGE~1.TXT Example 2: The below code illustrates the ASP File.ShortName Property. ASP <% dim fs,fol set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the folder set fol=fs.GetFolder("d:\geeksforgeeksfolder") 'Getting the full name of the folder Response.Write("Full Name: " & fol.Name) 'Getting the short name of the folder Response.Write("<br>Short Name: " & fol.ShortName) set fol=nothing set fs=nothing %> Output: Full Name: geeksforgeeksfolder Short Name: GEEKSF~1 Comment More infoAdvertise with us Next Article ASP Name Property M manaschhabra2 Follow Improve Article Tags : Websites & Apps ASP-Properties ASP-Basics Similar Reads ASP ShareName Property The ASP ShareName Property is used to return the network share name of the specified drive. Syntax: DriveObject.ShareName Example: The below code demonstrates the ASP Drive.ShareName Property. ASP <% dim fs,d set fs=Server.CreateObject("Scripting.FileSystemObject") 'Getting the required drive set 1 min read ASP ShortPath Property 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.ShortPat 1 min read ASP VolumeName Property The ASP VolumeName Property is used for setting or returning the volume name of the specified drive. Syntax: DriveObject.VolumeName[=newname] Parameters: This property has a single parameter as mentioned above and described below: newname: It specifies the new name that has to be set for the drive. 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 Item Property The ASP Item Property is used to return or set the value of an item in the Dictionary Object. Syntax: DictionaryObject.Item(key)[=newitem] Parameter Values: key: It specifies the key that is associated with an item. It is a required attribute.newitem: It specifies the new item that has to be set for 1 min read ASP GetParentFolderName Method The GetParentFolderName Method in ASP is used for returning a string value that indicates the name of a parent Folder of the last component in the specified path. It is a predefined method of the FileSystem Object. Syntax: FileSystemObject.GetParentFolderName(path) Parameter Values: Path: It is a r 1 min read Like