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.
Printable View
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.
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.. :p
Squirrelly1