This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
MechanicalMorgan's profile picture

What command do I use to access the command prompt?

Started by MechanicalMorgan, 23 June 2017 - 03:18 PM
MechanicalMorgan #1
Posted 23 June 2017 - 05:18 PM
Also, when I have my program run "ls" It doesn't show the filesIi have on the system, so am I being stupid, or have I typed something wrong.

Thanks!
Bomb Bloke #2
Posted 24 June 2017 - 07:45 AM
Assuming you want a script to suddenly jump to the prompt without exiting (so it can carry on when that shell session ends):

shell.run("shell")

If you want a script to get a directory listing, best to use fs.list() rather than shell.run("ls").
Edited on 24 June 2017 - 05:45 AM