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

How do I copy a programm onto a floppy disk?

Started by benolian, 06 November 2012 - 03:10 PM
benolian #1
Posted 06 November 2012 - 04:10 PM
I have recently made a program to password doors. I want to copy this onto a floppy disk so other users can install it onto their computers (In game). I have tried doing what it says in all the tutorials but it never works. Can anyone help?
Luanub #2
Posted 06 November 2012 - 04:17 PM
From the prompt or in a program?


--from the prompt
cp fileName /disk/fileName

--in a program
fs.copy("fileName", "/disk/fileName")
benolian #3
Posted 06 November 2012 - 06:01 PM
I assume from a prompt. I just want to copy the whole program so I can use it in another computer without haveing to re-make it.
remiX #4
Posted 06 November 2012 - 06:31 PM
Just use pastebin :P/>/>
cheekycharlie101 #5
Posted 06 November 2012 - 07:40 PM
simpe just go into the main terminal . insert the disk into a drive next to the computer then do this:

cp "your file" disk/"your new file on the disk"

then take your disk. put it in a drive next to another computer and do

"cp disk/"what you called it" "what you want it to be called on the computer"


you can also label disk by doing

label set <drive side> "label name" . then if you have something like too many items you can spawn the disk so you if you lose it in your world you can spawn your code back :P/>/>