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

Help with floppy disks

Started by cheekycharlie101, 03 August 2012 - 12:38 PM
cheekycharlie101 #1
Posted 03 August 2012 - 02:38 PM
ok so this is probaly the noobiest question anyone has ever asked but i cant figure out how to copy a program to a disk??
can someone please help me with it
also can someoen tell me how i label a disk? so when i hover over it with a cursor it says something like: password door code??
thanks -Cheeky
Cranium #2
Posted 03 August 2012 - 03:11 PM
type cp "programname" "disk/" to copy, and "label set 'namehere'"
Make sure you are reading the WIKI first, it explains a lot of the commands in CC, and if you need some more help, you can type "help(programname)" within the computers to get some info on the programs.
Pharap #3
Posted 04 August 2012 - 12:49 PM
to copy:
copy (program directory goes here) (desired location on disk here)
for example,
say you made a program in the 'rom' directory called 'test' and you wanted to move it straight to the disk:
copy rom/test disk/test

to rename disk:
label set (side of diskdrive) (name to call it)
for example,
if I wanted to call a disk in the left diskdrive 'Install Password':
label set left Install Password

Hope this helps, be sure to ask if you need anything else.
imdacrazy1 #4
Posted 06 August 2012 - 03:13 AM
If you label a lot of disks like me than I made an easy program that labels disks for you!
(The variable "W", The text in the parameters of write, and the message that the program prints at the end can all be customized to suit your needs!)
Program:

write("Enter Description: ")
W = io.read()

disk.setLabel("right", ""..W.."")
print("Label set to "..W.."!")