Property: ShortPath for Folder
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Properties > Property: ShortPath for Folder
Property: ShortPath for Folder
Specifies the short path of a folder according to the 8.3 naming convention.
Object.ShortPath
| Object | Folder Object with this property |
| Object.ShortPath | String with read access |
The following example returns the short path of a folder:
Function FolderShortPath(sFolder) Dim fso, oMyFolder Set fso = CreateObject("Scripting.FileSystemObject") Set oMyFolder = fso.GetFolder(sFolder) FolderShortPath = "Shortpath: " & oMyFolder.ShortPath End Function