Execute a system command: Difference between revisions
no edit summary
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
No edit summary |
||
Line 2,094:
End Module
</syntaxhighlight>
=={{header|Vlang}}==
<syntaxhighlight lang="vlang">
import os
fn main() {
result := os.execute('cmd /c dir')
if result.output !='' {println(result.output)}
else {println('Error: not working') exit(1)}
}
</syntaxhighlight>
|