RosettaCodeData/Task/Execute-a-system-command/Delphi/execute-a-system-command.delphi
2023-07-01 13:44:08 -04:00

9 lines
147 B
Text

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