RosettaCodeData/Task/Execute-a-system-command/Delphi/execute-a-system-command.pas
2024-10-16 18:07:41 -07:00

9 lines
147 B
ObjectPascal

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