RosettaCodeData/Task/Execute-a-system-command/REBOL/execute-a-system-command.rebol
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

15 lines
318 B
Text

; Capture output to string variable:
x: "" call/output "dir" x
print x
; The 'console' refinement displays the command output on the REBOL command line.
call/console "dir *.r"
call/console "ls *.r"
call/console "pause"
; The 'shell' refinement may be necessary to launch some programs.
call/shell "notepad.exe"