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

disc's how do they work?

Started by hamish1001, 22 March 2012 - 10:38 PM
hamish1001 #1
Posted 22 March 2012 - 11:38 PM
the title says all i want to copy and move around programs but IDK how
hamish1001 #2
Posted 22 March 2012 - 11:49 PM
i tried "copy" and "paste" but it didnt work
PatriotBob #3
Posted 22 March 2012 - 11:52 PM
When you put a disk drive next to a computer and put a floppy disk in, the computer will mount it to /disk{n}. So in this case the first disk is mounted to /disk

You have two options:
A ) Copy it to local drive, switch disks and copy from local to disk.
B )Attach a second disk drive and copy from disk to disk.

Option A )
mkDir /tmp
cp /disk/fileA /tmp/fileA
*repeat for all files, the default copy program is meh*
*switch disks*
cp /tmp/fileA /disk/fileA
*repeat again… meh*

Option B )
*this assumes sources is in /disk and destination in /disk2
cp /disk/fileA /disk2/fileA
*repeat for all files… lots of meh*
hamish1001 #4
Posted 23 March 2012 - 12:05 AM
thanks i couldn't work it out :(/>/>
FuzzyPurp #5
Posted 23 March 2012 - 02:28 AM
There are no discs In CC. Maybe disks is what you're looking for.
hamish1001 #6
Posted 23 March 2012 - 02:38 AM
There are no discs In CC. Maybe disks is what you're looking for.
spelt it wrong lol :(/>/>
Wolvan #7
Posted 23 March 2012 - 02:06 PM
You can use my mass disk burner. It really helps
PatriotBob #8
Posted 23 March 2012 - 08:13 PM
I'd really like to see an improvement of the default copy command that supports copying entire folder structures added to the rom… it's not hard to write one our self, but it's something that would be nice.
Wolvan #9
Posted 24 March 2012 - 10:41 AM
I think that copy already can do that
PatriotBob #10
Posted 24 March 2012 - 10:29 PM
Hmm I looked over the code and didn't see anything like that… maybe I missed it…
Wylde Zag #11
Posted 06 April 2013 - 01:35 PM
a noob like me does it as follows:

>cp /disk/ /myfolder
makes a new folder named myfolder in the computers directory and copys the entire disk to that folder

>cp /disk/myfile /myfile
copys the file named myfile onto the computers root directory

>cd myfolder
changes the directory path to the myfolder path

>list
shows the programs in the folder

>cd ..
returns to the root folder (be shure to make the blank between the d and the .., otherwise it won't work

>cd /disk
changes to the disk path


aso….
it's a lil like the old DOS or UNIX, just test it a litle around, it's not that hard…


noobie Greetz
Zag
Lyqyd #12
Posted 06 April 2013 - 07:13 PM
That's a little overkill for bumping a topic that's already been answered. Over a year, really? Locked.