RosettaCodeData/Task/Execute-a-system-command/Icon/execute-a-system-command-1....

7 lines
111 B
Plaintext

procedure main()
write("Trying command ",cmd := if &features == "UNIX" then "ls" else "dir")
system(cmd)
end