ShortPath Property

 

Description

 

Returns the short path used by programs that require the earlier 8.3 file naming convention.

 

PowerBASIC Syntax

 

PROPERTY GET ShortPath () AS STRING

 

Return Value

 

BSTR. The short path for the specified folder.

 

Example [PowerBASIC]

 

#INCLUDE "windows.inc"

#INCLUDE "scrrun.inc"

 

DIM fso AS IFileSystem

DIM pFolder AS IFolder

 

' Create an instance of the FileSystemObject

fso = NEWCOM "Scripting.FileSystemObject"

' Get a reference to the IFolder interface

pFile = fso.GetFolder(UCODE$("C:\My Test Folder"))

' Get and display the short path name

MSGBOX ACODE$(pFolder.ShortPath)

 

Valid XHTML 1.0 Transitional