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

How To Make A Disk Program Copy Itself Onto A Computer Automaticly

Started by pokuit, 26 February 2012 - 05:23 PM
pokuit #1
Posted 26 February 2012 - 06:23 PM
I'm experimenting with floppys and i was wondering is there any way to copy a file from a floppy to a computer on startup
TheVarmari #2
Posted 26 February 2012 - 06:27 PM
On the floppy, make a new file called 'startup'
Then, type this code in:
fs.copy("disk/PROGRAM", "program")
This basically copies the program PROGRAM from the floppy and puts it into the computer as program.

Hope this helps!
pokuit #3
Posted 26 February 2012 - 06:43 PM
On the floppy, make a new file called 'startup'
Then, type this code in:
fs.copy("disk/PROGRAM", "program")
This basically copies the program PROGRAM from the floppy and puts it into the computer as program.

Hope this helps!
Thanks your amamzing