RosettaCodeData/Task/Execute-a-system-command/Yabasic/execute-a-system-command.basic

7 lines
158 B
Plaintext

system("dir")
//It will return the exit code of the command; its output (if any) will be lost.
print system$("dir")
//Returns the output as a large string.