This is a discussion on Track how much copied within the C and C++ forums, part of the Programming Talk category; I have task for copying numerous files using my C program. I have written program for this task and it ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Track how much copied
I have task for copying numerous files using my C program. I have written program for this task and it is working fine. But the task I am struck up is I want to put a progress bar to track the percentage of files copied. Can someone give me idea for doing this task? If some guideline is provided for achieving this task it would help me a lot.
|
|
|||
|
The logic is you can follow for showing progressing of the progress bar could be as follows. The logic is given for showing progressing at folder level. So I could suggest you to count the number of files present in the particular folder for which the progressing is to be monitored. Then you could go with a looping process and copy each field present in the folder separately and once each file is copied successfully increment the looping structure by 100/n of step. This is because I have assumed that you are going to show the progressing of copying fields in percentage. For displaying the progress bar you could use graphics concept in C programming and achieve the same.
|