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

Disk

Started by tysciman7, 21 January 2013 - 04:51 PM
tysciman7 #1
Posted 21 January 2013 - 05:51 PM
how do you get a program onto a disk then bring that disk to another computer and have it so the 2nd computer can run with out the disk? i have been trying to copy the program and it hasnt been working for me
theoriginalbit #2
Posted 21 January 2013 - 05:54 PM
Insert disk into drive in computer 1
Type the following in the terminal substituting in values where shown ( where < some text > appears ) and press enter
cp <source> disk/<filename-on-disk>

Then to get it back off
cp disk/<filename> /
tysciman7 #3
Posted 21 January 2013 - 06:00 PM
where do i type this in at
theoriginalbit #4
Posted 21 January 2013 - 06:07 PM
Type the following in the terminal
So the computer…
tysciman7 #5
Posted 22 January 2013 - 04:14 AM
It says no program
remiX #6
Posted 22 January 2013 - 04:26 AM
type 'list' into the computer and tell us if it shows a program called 'copy'. If not, you must have deleted the copy program.

Alternatively, type 'lua' into the computer and type:


-- if the while you want to copy is called  'test' and you want to copy it from a pc to the disk to another pc:

fs.copy("test", "disk/test")
-- move the diskdrive and disk to other pc

fs.copy("disk/test", "test")