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

Taking data off a floppy disk

Started by Runewar, 14 April 2012 - 12:46 AM
Runewar #1
Posted 14 April 2012 - 02:46 AM
I setup a program for a mining turtle, and I want to move it to other mining turtles using a floppy disk, but im having issues finding out exacly what to put into the console to make it copy the program onto another computer
Luanub #2
Posted 14 April 2012 - 02:56 AM
to copy from a disk to a computer you will want to do something like


fs.copy("disk/progamName", "progamName")
Runewar #3
Posted 14 April 2012 - 03:02 AM
Odd, now when i try to copy data onto a disk it says access denied, im doing
copy program disk
Luanub #4
Posted 14 April 2012 - 03:07 AM
You should just be able to reverse the copy from disk -> computer.

just make sure you are using the absolute path of the program. So if its in a directory named say home you would do


fs.copy("/home/programName", "disk/programName")
Runewar #5
Posted 14 April 2012 - 03:09 AM
still getting acess denied
Cloudy #6
Posted 14 April 2012 - 07:27 PM
Try
fs.copy("/home/programName", "/disk/programName")
If that doesn't work, disk folder might not exist.
MysticT #7
Posted 14 April 2012 - 08:28 PM
If it's from a program, do like says above. If it's from the terminal, type: copy path/to/program disk/programName
If that doesn't work, you don't have a disk in the drive or it's not the first disk. Use ls to check if the disk folder exists:
> ls
rom disk someProgram
If disk is not in the list, but there's another disk (like disk2 or disk3) replace disk on the copy command to that disk.