Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Loading Bar

Status
Not open for further replies.

apc2003

Programmer
Aug 29, 2003
54
GB
Hello,

I'm looking to code a loading bar to only move when a file has been installed copied to it's destination.

I would like it to calculate each file size correctly so that the bigger files will cause the progress bar to move more than a smaller file.

The only way i can think of doing this is to calculate the total file size of all files i want to copy and then monitor the destination directory's file size and then read it back to a progress bar!

Could anyone suggest a better or easier way to do this?

Thanx in advance...
 
No need to monitor the installation directory (there may already be files there anyway, which would throw off your count). Since you know the total, and you know the individual file sizes, just add up a counter as you copy each file.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top