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

[QUESTION] How can I paste a program from a Floppy disk to the computer?

Started by totoporoto, 04 May 2012 - 10:37 PM
totoporoto #1
Posted 05 May 2012 - 12:37 AM
Whell I have just finished my first program but I want to move it to other computers, I akready pasted it into the Floppy disk but now what I have to do to move it to the other computers from the floppy disk?
MysticT #2
Posted 05 May 2012 - 12:51 AM
I suppose you used the copy/cp program to put it in the floppy, just do the same to copy it to the computer:
> cp /disk/<YourProgram> <Name>
You could also create a startup file so it copies your program auomatically:

fs.copy("/disk/<YourProgram>", "<Name>")
totoporoto #3
Posted 06 May 2012 - 12:01 AM
The program is call "Mineros" what should I write to copy it from the floppy to the computer? xD
BigSHinyToys #4
Posted 06 May 2012 - 12:46 AM
MinerosMineros

fs.copy("/disk/<YourProgram>", "<Name>")

so the above is a function that can be used in a program I think you are looking for.



cp diskMineros Mineros
This will copy the program from the disk to the computer.
for more info just typer "cp" into a terminal
totoporoto #5
Posted 06 May 2012 - 01:28 AM
thanks