PDA

View Full Version : Copy large amounts of files in multiple folders



mannappie
10-10-2009, 11:54 AM
Hey everyone,

I have got a problem. I am making a app that opens a truecrypt container (25 gig) and launches a third party softwareapp. That software needs to have access to the data in that container. Everything loads from a 32 gig USB pendrive. So the above is for securityreasons.

Because of the reason that multiple users get the same container, and thus the same password, and use portable USB drives that could be lost I thought to use a password protection in AMS. That all works now. :)

So what is the problem:
Well, recently someone asked me if it was possible to copy all the files in the truecrypt container to the c: drive. Ofcourse that is possible I replied.....

Wel you should know that it's 25 gig of data to copy. In AMS i'm using the File.Copy command for this purpose. It all works well but is dead slow.
It copied 42 MB in 45 minutes. At this rate it will take some hours to copy it all while in windows it only takes 40 minutes. There are three major reasons why I want AMS to this job.
1st-- The user can't screw things up.
2nd-- A progressbar is a nice feature I implemented. This way the user can see that the copyprocess is still going.
3rd-- The security is in place and works fine.

if someone would have an idea on how to speed things up it would be much appreciated. :yes

PS: I know this is a scripting language. I know this is slower than anything else but perhaps there is a dll out there that could do the job and still would be able to update a progressbar?

IdeasVacuum
10-10-2009, 01:17 PM
If that amount of data is copied to a User's C drive, hasn't the security of that data been thrown out of the window?

I have been experimenting with PureBasic to solve a large file read problem (too slow) in my AMS project. You could take a look at that, the free Demo version is very capable.

http://www.purebasic.com/

mannappie
10-10-2009, 04:33 PM
I hear ya! :lol

Totaly agree with you. It's not my call tho.

Thanks for the link. I'll have a look at that. (edit: Just looked. Don't think this is it because I would need to redo the whole thing again. I'd rather use AMS for this. Thanks anyway!!)

Does anyone else have a suggestion?

IdeasVacuum
10-10-2009, 05:25 PM
You can still use AMS, it can run a PureBasic exe silently or call a PureBasic DLL