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