SoFunction
Updated on 2025-04-08

VBS tutorial: Properties - ShortPath attributes

ShortPath attribute

Returns the short path name converted according to the 8.3 naming convention.

object.ShortPath

object should be the name of the File or Folder object.

illustrate

The following code shows how to use itShortNameproperty:

Function ShowShortPath(filespec)    Dim fso, f, s    Set fso = CreateObject("")    Set f = (filespec)    s = UCase() & "<BR>"Short path name"    s = s & "yes:" &  ShowShortPath = s End Function