Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying files with feedback
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00979088
Message ID:
00979510
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?

While the others have given you the answer using the API, you might want to look at my article that appeared in the July, 2000 issue of the VFUG newletter.

It'll tell you how to specify exactly what you want to appear in the dialog, using the Shell.Application object.

The article is available on-line at www.vfug.org.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform