Anonymous user
Execute a system command: Difference between revisions
→{{header|BBC BASIC}}
No edit summary |
|||
Line 89:
=={{header|BBC BASIC}}==
On Acorn computers the *CAT command catalogues the current directory, the equivalent of the Unix ls command or the DOS/Windows dir command. The BBC BASIC OSCLI command passes a string to the Command Line Interpreter to execute a system command, it is the equivalent of C's system() command.
With BBC BASIC for Windows you can execute the Windows dir command:
<lang bbcbasic>OSCLI "*dir":REM *dir to bypass BB4W's built-in dir command</lang>
And if running BBC BASIC on a Unix host, you can execute the ls command:
<lang
▲<lang bbcbasic> *RUN dir
=={{header|Brat}}==
|