Friday, June 18, 2021

DELPHI - How to open file in Windows Explorer (default opening)

Shellapi unit.
ShellExecute( Handle,
              'OPEN',
              PChar('explorer.exe'),
              PChar('/select, "' + path + '"'),
              nil,
              SW_NORMAL
             ) ;

No comments:

Post a Comment