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

I need some halp! D:

Started by Mehh_, 25 October 2012 - 11:07 PM
Mehh_ #1
Posted 26 October 2012 - 01:07 AM
I need to know how to get a program from a floppy disk onto a turtle. Please HALP! D:
KillaVanilla #2
Posted 26 October 2012 - 01:10 AM
Put the floppy disk drive on a side of the turtle that doesn't have anything (no tools/modem/crafting bench).
Placing the disk drive right under the turtle would be your best bet.
Then run:

copy disk/file file
in the terminal, or

fs.copy("disk/file", file)
from a program or the lua interpreter
Replace "file" with whatever your file is called.
unknown1138 #3
Posted 26 October 2012 - 01:59 PM
A simple way of doing this automatically is by putting a turtle next to a disk drive which has a floppy with a file named startup (once you rclick on the turtle it will start and load that script).

This is one of my startup scripts so you can just edit it.
-- this will copy the file startup onto the turtle
if not fs.exists("startup") then
   fs.copy("disk/startup","startup")
end
-- this works the same as above but for the file receive.
if not fs.exists("receive") then
   fs.copy("disk/receive","receive")
end

-- this will open the rednet on your turtle automatically
rednet.open("left")
-- this will make the shell run the program receive
shell.run("receive")