Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File copy over Citrix - progress indicator
Message
De
28/08/2005 18:30:07
 
 
À
28/08/2005 17:29:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
01044624
Message ID:
01044659
Vues:
18
>>>I wrote a little backup application which zips the data and then copies them over Citrix to a local drive.
>>>
>>>The problem is that the backup and zipping get done in a couple of minutes, however the file copy can take anywhere between 10 and 60 minutes. I tried to copy the file using low-level file functions, and reporting the progress at about each 2.5% of the total. However, it seems that the OS simply queues copy requests - it reaches 100% in a couple of seconds, and only when I issue fClose() on the target file, it then waits whatever it takes until the actual copying happens. Which basically makes my progress indicator useless.
>>>
>>>Is there any setting to have this deferred writing turned off, or should I just close and reopen the target file every now and then?
>>
>>Uses you a buffered file ?
>
>Mmm... good idea. The source file is buffered. Didn't find any parameters in the fCreate() command that would influence any buffering, but then I could close it immediately after and do a fopen(cTargetFile, 11) (unbuffered, write-only). I'll see what this gives me.

Dragan, Don't forget to post the result to me.

Another:
... = fcreate()
*** loop
 * progress
 FWRITE(nFileHandle,... )
 FFLUSH(nFileHandle , .T.)
....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform