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

[CPYR] File Copier

Started by Agent Silence, 08 May 2014 - 03:58 AM
Agent Silence #1
Posted 08 May 2014 - 05:58 AM
A simple program that allows computers to directly download programs to a disk , and allows the disk to extract to program to another computer!

Install Instructions:
1. Type 'pastebin get xTQBPSie extract' doesn't work, fixing
2. Type 'pastebin get 57v8F1y4 copier' – V1, rewriting from scratch in V1.1
3. Place a disk in the disk drive
4. Run 'copier'
5. Run 'disk/extract'
6. Enjoy!
Edited on 08 May 2014 - 01:56 PM
CometWolf #2
Posted 08 May 2014 - 06:02 AM
Why not just use the built in copy and move programs?
Agent Silence #3
Posted 08 May 2014 - 06:06 AM
Why not just use the built in copy and move programs?
idk
because this is easier i guess
CometWolf #4
Posted 08 May 2014 - 07:33 AM
Downloading this from pastebin and running it is probably not easier than running "cp filename disk/filename" from the shell :P/>
MKlegoman357 #5
Posted 08 May 2014 - 11:01 AM
Your 'extract' program is so messed up. First it will try to copy a file if it doesn't exist. Then it will try to copy it to the rom (Read Only Memory) folder. Then it will try to delete itself from the computer's root folder, shouldn't it try to delete itself from the disk?

Also, you have to edit the 'cpry' program to change the disk drive side which is kind of annoying.

Your concept is interesting, but it just doesn't work correctly for now. You should make it into one program, maybe a GUI, that would be nice.

Also, why so many people post their code without even testing it?
Edited on 08 May 2014 - 09:02 AM
Agent Silence #6
Posted 08 May 2014 - 03:48 PM
Your 'extract' program is so messed up. First it will try to copy a file if it doesn't exist. Then it will try to copy it to the rom (Read Only Memory) folder. Then it will try to delete itself from the computer's root folder, shouldn't it try to delete itself from the disk?

Also, you have to edit the 'cpry' program to change the disk drive side which is kind of annoying.

Your concept is interesting, but it just doesn't work correctly for now. You should make it into one program, maybe a GUI, that would be nice.

Also, why so many people post their code without even testing it?
Thank you for your feedback, really appreciated!
I am quite a junior coder, and been having problems diagnosing the problem with 'extract'.
As for the other stuff, I am working on it now! :)/>
Blue #7
Posted 13 May 2014 - 06:50 PM
To avoid the user having to edit the code to change the side you could ask for the user's input.
Edited on 13 May 2014 - 04:52 PM
apemanzilla #8
Posted 13 May 2014 - 07:53 PM
To avoid the user having to edit the code to change the side you could ask for the user's input.
Or even better automatically find a drive, and if there are more than one then ask for user input.

Especially in 1.6 with wildcards, this program is inferior to the built in "copy" program by a long stretch.