Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Fully Functional Directory Copier
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Token




PostPosted: Sun Feb 12, 2006 12:13 am   Post subject: Fully Functional Directory Copier

Fully Functional Directory Copier
(the kind you'd use to copy entire programs from certain computers at certian learning institutions Laughing )

I realised that turing didn't have a Dir.Copy Function as i was making a text based File manager a few months ago. So we started Java this year and I wanted to have a copy for home uses, (Ready to Program that is), and so i made up this little app, using some of the code from my File manager. I'm gonna add this bit of code in later and then post my file manager, it should come in pretty handy for those who want to 'borrow' a few applications from the school, or just search around the disk drives.

I tested it a bunch of times, and it worked great every time,

Largest Copy
23.6 MB
647 Files
77 Folders[
2.5 Minutes



instructions are at the top of the .t program, please let me know what you think

-Token

**File Updated**



Folder Copier.t
 Description:

Download
 Filename:  Folder Copier.t
 Filesize:  3.25 KB
 Downloaded:  106 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Delos




PostPosted: Sun Feb 12, 2006 10:19 am   Post subject: (No subject)

It does not appear to be able to copy imbedded folders. That's not good. Especially when you want to, uh, borrow things.
As for the 'borrowing'. You do realise that any programme that would entice you that much would likely also have various Reg. Keys associated with it, hence copying just the files would not be sufficient?

No need for you to use a 'quit' in your 'done' procedure. Quits are very irritating. Why not just set up an exit condition in your main loop, controlled by a boolean that would be switched on in the done proc? Even better yet, you don't really need that proc since it does nothing other than exit. Just put an 'exit' in that clause of your if condition.
The only time you'd want to use a proc here is if you had various other things that needed doing before you exited, like updating files, clearing the screen, drawing a half-eaten watermelon - whatever the case may be. Otherwise, it's just extraneous code.
Token




PostPosted: Sun Feb 12, 2006 11:49 am   Post subject: (No subject)

First off, most programs don't need the Registry keys to run, it just adds them to the start menu, makes them run when your computer starts, holds certian values (which usually default when the registry entry is missing). Not often does the program require the registry key to work. even so, I can access the schools registry suprisingly easily anyways, so if it doesent work i'll just export that key and enter it into mine.

As for embedded folders, i may be wrong but i think your talking about when a folder is inside of a folder? That is specifically what i made the program to do, it perfectly preserves the paths and everything gets put into the correct folder, I dont know what your talking about, unless imbedded folders are somthing else...

thanks for your feedback and i fixed the done procedure thing, i guess i passed over the fact that it was in a loop, and i'm gonna post my complete file scanner some time thru the week with this added, so if u find anymore bugs let me know.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 3 Posts ]
Jump to:   


Style:  
Search: