Execute a system command: Difference between revisions

no edit summary
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>
 
291

edits