Execute a system command: Difference between revisions

Add Plain English
(Omitted EasyLang)
(Add Plain English)
Line 1,592:
write(stdout->read() + "\n");
}</syntaxhighlight>
 
=={{header|Plain English}}==
<syntaxhighlight lang="text">
A command is a string.
A parameter is a string.
 
To run:
Start up.
Execute "dir" on the command line.
Shut down.
 
To execute a command on the command line:
Put "/c " then the command into a parameter.
Null terminate the parameter.
Put "cmd" into a string.
Null terminate the string.
Call "shell32.dll" "ShellExecuteA" with nil and nil and the string's first and the parameter's first and nil and 1.
</syntaxhighlight>
 
=={{header|Pop11}}==
175

edits