Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files with feedback
Message
De
21/01/2005 10:38:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00979088
Message ID:
00979273
Vues:
9
>I'm distributing a DVD with 50K + images on it. I wrote a simple auto-running app. that copies the files from the DVD onto the hard drive and provides feedback to the user. The downside to this is that it's very slow. I've minimized the # of screen refreshes and tried a few different approaches to speed things up, but it's still taking around 2.5 hours (I dropped it down from 4 hours). On a 1X DVD drive, the best I can hope for is around .5 hour for the amount of data I'm copying. If I drop to a DOS prompt and just do a COPY *.*, it runs very close to this limit; something like 35-40 minutes.
>
>I've switched from using VFP's COPY FILE to the Scripting.FileSystemObject COM object, which helped a little bit. I'd love to be able to use the CopyFolder method, but this object doesn't surface any events to provide user feedback.
>
>So I seem to be stuck between providing a nice UI and a little bit of feedback (and it being slow), or an ugly UI (DOS window, no progress status except the file names) (and it being fast). Both options kind of suck.
>
>Does anyone know of any third party objects/Windows controls/etc. that do a FAST copy and still provide UI feedback?

Hi there :)
You can have look at my XDIR class here in downloads, There is XCOPY implementation there which works very fast (pure fox copying *.* , no shell involved)

Now since source is included, you can add some visual feedback or progress bar to the user. I left it only with (wait wind nowait) showing of the files copied.

Rgds++
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform