Task

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




Related task
  Get system command output


ImportC "msvcrt.lib"
  system(str.p-ascii)
EndImport
 
If OpenConsole()
  system("dir & pause")
 
  Print(#CRLF$ + #CRLF$ + "Press ENTER to exit")
  Input()
  CloseConsole()
EndIf