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

6 lines
158 B
Text

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.