| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1754 Location: Space and Time
|
Posted: Wed Feb 26, 2003 8:33 pm Post subject: Progress |
|
|
Ok, I must be loosing it. I can't seem to get my progress bar working the way I want. Let's say that I have 152 files, I want to show a progress bar of the files being copied/moved/deleted...whatever. I can't seem to get it to work right. I want the progress bar to reach 100% if there are 3 files or 354 files. I have been thinking too long...
Thanks, _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Feb 26, 2003 8:34 pm Post subject: |
|
|
dialog set,Progress,@div(@prod(<current pos>,100),<total count>) _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Feb 26, 2003 8:36 pm Post subject: |
|
|
Within the REPEAT/UNTIL (etc.) loop, each time you copy/move/delete/etc.
you should find the percentage of files you have copied/moved/deleted/etc.
Example:
| Code: | | dialog set,progress1,@fdiv(@fmul(%%done,100),%%total) |
Hope this helps.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Feb 26, 2003 8:37 pm Post subject: |
|
|
Oops! You beat me to the post bweckel!  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Feb 26, 2003 8:39 pm Post subject: |
|
|
I just happened to be working with progress bars here lately and had
that bit of code still fresh in my mind.
I'm sure nobody will complain for offering to much help.  _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1754 Location: Space and Time
|
Posted: Wed Feb 26, 2003 9:22 pm Post subject: |
|
|
Thanks guys. I have had a long week.  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
|