ShellBrowser Delphi Edition Documentation
ContentsIndexHome
PreviousUpNext
TShellBrowser.GetShellObjectName Method

Gets the well formatted shell name of the current object

Syntax
Pascal
function GetShellObjectName(pInFolderName: Boolean = True): UnicodeString;

GetShellObjectName returns a display friendly name of the current object, which you can for example see in the Windows Explorer or the common file open dialog. The property ObjectName holds the file system name of the current object. They often only differ in upper or lower case. Some shell names like 'My Computer' depend on the language of the installed Windows.

ObjectName GetShellObjectName 'A:' '3,5"-Disk (A:)' 'CALC.EXE' 'Calc.exe' '' 'My Computer'
Copyright (c) 2011. All rights reserved.