RosettaCodeData/Task/Execute-a-system-command/Lingo/execute-a-system-command.lingo

7 lines
124 B
Plaintext

sx = xtra("Shell").new()
if the platform contains "win" then
put sx.shell_cmd("dir")
else
put sx.shell_cmd("ls")
end if