forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Progress

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1754
Location: Space and Time

PostPosted: Wed Feb 26, 2003 8:33 pm    Post subject: Progress Reply with quote

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... Rolling Eyes Embarassed

Thanks,

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Feb 26, 2003 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Feb 26, 2003 8:36 pm    Post subject: Reply with quote

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. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Feb 26, 2003 8:37 pm    Post subject: Reply with quote

Oops! You beat me to the post bweckel! Embarassed
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Feb 26, 2003 8:39 pm    Post subject: Reply with quote

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. Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1754
Location: Space and Time

PostPosted: Wed Feb 26, 2003 9:22 pm    Post subject: Reply with quote

Thanks guys. I have had a long week. Rolleyes
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group