Results 1 to 2 of 2

Thread: Help

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2000
    Location
    Toronto, Canada
    Posts
    112

    Help

    I have a simple batch file that is copying large data files across a network. Is there a way to add some kind of status bar/progress bar, or status indicator of any kind. I am not a hardcore guy so any examples would be great.

  2. #2
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026
    Just a thought man...

    If you know the total file size and the amount transfered (not sure how you are coping the files), all you have to do is take the percent transfered... (amount transfered/total file size)

    then, take any set number like 20 or so...

    take the previously calculated percentage from twenty (let's use 75%)

    so, you now have 15/20...

    so you just display like 15 astericks symbols or something like that... (be sure you clear the screen of any previous "progress bar"

    if you do a loop every one or so seconds (not sure if you can check against the system clock for that) you should get a pretty accurate progress bar..

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width