Execute a system command: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
No edit summary |
||
Line 2,094: | Line 2,094: | ||
End Module |
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> |
</syntaxhighlight> |
||