Task

Run either the   ls   system command   (dir   on Windows),   or the   pause   system command.




Related task
  Get system command output


program ExecuteSystemCommand;
 
{$APPTYPE CONSOLE}
 
uses Windows, ShellApi;
 
begin
  ShellExecute(0, nil, 'cmd.exe', ' /c dir', nil, SW_HIDE);
end.