ShortName Property |
Description
Returns the short name used by programs that require the earlier 8.3 file naming convention.
PowerBASIC Syntax
Return Value
BSTR. The short name 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 folder name MSGBOX ACODE$(pFolder.ShortName)
|