RosettaCodeData/Task/Execute-a-system-command/Phix/execute-a-system-command.phix

4 lines
97 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
string cmd = iff(platform()=WINDOWS?"dir":"ls")
2016-12-05 23:44:36 +01:00
system(cmd)
integer res = system_exec("pause",4)