>>>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?
>>
>>See
Re: How to receive progress update during COPY FILE TO ? Thread #
793714 Message #
793756>
>I knew there would be some beast like that. Frankly, heavy artillery of that kind is exactly what I wanted to avoid. Looking for something simple. If it's closing the output file every meg or two, I'll do that. Just no APIs, nothing to install, no extras - this is something that has to run on a server that nobody's looking at. It only has to show to the Citrix user how it's progressing.
>
>Thanks, anyway.
Two extra dependencies required: Heap.prg and .h file. I don't think it's too much to pay for Windows progress bar.
If it's not broken, fix it until it is.
My Blog