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

Writing programs on a disk

Started by chucky_egg, 25 February 2013 - 12:19 AM
chucky_egg #1
Posted 25 February 2013 - 01:19 AM
Hey, title explains it all - How do i put a disk into my computer and write programs directly onto that disk.?
Lyqyd #2
Posted 26 February 2013 - 06:39 AM
Split into new topic.
LBPHacker #3
Posted 26 February 2013 - 08:28 AM
First of all, you have to place a Disk drive next to the computer. Then take a Floppy and put it into the Disk drive. When you insert the disk, a directory gets mounted on the computer called "disk". If you have two Disk drives, and you put Floppies into both of them, they will be mounted in paths "disk" and "disk2". If you have three Floppies mounted, the third path will be "disk3", etc. You can copy files onto disks using "cp <filename> disk/<filename>" in Shell. You can create a new file on a Floppy directly using "edit disk/<filename>".

You can also use advanced disk releated commands with the Disk API.
Lewis.holcombe #4
Posted 26 February 2013 - 12:58 PM
If you would like to make a whole library of program's to carry around on a disk just do cd disk then write up all program's as you would like normal :)/>
chucky_egg #5
Posted 27 February 2013 - 08:45 AM
Thanks guys!