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

How to get current dir?

Started by raxteeze, 24 May 2015 - 06:06 PM
raxteeze #1
Posted 24 May 2015 - 08:06 PM
There is a program. Command Prompt. It is necessary to put in place PATH, a current path.

os.loadAPI("/root/bin/API")
term.setBackgroundColor(32768)
API.clear()

while true do
term.setTextColor(16384)
write(".")
term.setTextColor(1)
textutils.slowWrite(" PATH ", 50)
a=read()
shell.run(a)
end
Lyqyd #2
Posted 24 May 2015 - 08:08 PM
shell.dir().