I'm using VB5 under Win95 and NT 4.0
I've already asked this question here once but the answer wasn't very responsive so I'm going to try again.
I would like to find out the most effcient way to to
have a VB5 progress bar show the progress of a file copy from one drive to another or to an LPT port (Actually a Novell Print Que).
I'm familiar with the API Calls:
LZCopy and SHFileOperation
But for reasons I won't go into I do NOT want to use
these in my program. I would prefer to use the VB5
progress bar format. Or something simular to the progress
bars you see in most setup programs during file copies.
I'm trying to figure out how to determine the amount copied
in the equation:
progressbar.value = amount copied / total file size
I've thought reading the file as a binary in chucks and then
writting back out in chunks so I can meter the progress but this seems very inefficient because in many cases the files I will be tranfering will be quite large. 100K to 500K or so.
Progress bars during file transfers is a VERY common occurence in a LOT of other programs. I was just wondering
what common practice was for this proceedure.
If possible a code snippet would be VERY helpful.
Thanks VERY much for all your help. This Exchange is
a great idea and I plan to continue using it.