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

7 lines
158 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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.