Task

Run either the   ls   system command   (dir   on Windows),   or the   pause   system command.




Related task
  Get system command output


import osproc
 
let exitCode = execCmd "ls"
let (output, exitCode2) = execCmdEx "ls"