ShellExecute not working

Issue #178 new
Rustam Shirgazin created an issue
if ShellExecute(Handle, 'open', '', nil, nil, SW_SHOW) < 32 then
  ShowMessage('Can not execute ShellExecute!');
end; is executable and can be run from Terminal just by typing script name


On Ubuntu ShellExecute does not execute. How to use ShellExecute correctly?

Comments (3)

  1. Rustam Shirgazin reporter

    WinExec doesn't deploy

    if WinExec('', SW_SHOW) < 32 then
      ShowMessage('Error WinExec !')

    Error [DCC Error] E2597 C:\Program Files (x86)\CrossVcl\Lib\20.0\Linux64\Release\Winapi.Windows.o:Winapi.Windows:function Winapi::Windows::WinExec(char*, unsigned int): error: undefined reference to 'WinExec'

  2. Eugene Kryukov repo owner

    ShellExecute launches default app for specified file, which registered in Desktop (not for terminal)

  3. Log in to comment