![]() |
VOOZH | about |
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