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

Copying data from a disk to a turtle

Started by druedan, 06 June 2012 - 12:34 PM
druedan #1
Posted 06 June 2012 - 02:34 PM
So I've written a program for my turtle, saved it on a floppy, and put it in a disk drive next to a turtle.

I tried to copy the program to the turtle like this: cp slave rom

It said copy:13: Access Denied.

Obviously, I'm not sing the correct file path.

What IS the correct file path?
Pinkishu #2
Posted 06 June 2012 - 02:36 PM
You cannot copy stuff to rom.. its read-only-memory
it should be
cp /disk/<progondisk> <prog>

to copy <progondisk> from disk to <prog> on turtle
(without the <> ofc)
and to copy to disk ofc

cp <prog> /disk/<prog>
druedan #3
Posted 06 June 2012 - 02:37 PM
Thanks.
EpicMonias #4
Posted 08 August 2013 - 05:58 AM
could you give an example please, (i'm not good with computercraft)
campicus #5
Posted 08 August 2013 - 06:53 AM

cp disk/program program