HI,
I would like to introduce you to a ProgressBar script I wrote but because it takes some explainantions, and because there are two versions + two sample scripts, I will split it into several posts.
________________________
Ok, First, the "readme":
How to
Copy-paste the lines from the samples.
I hope it won't be too difficult to find out where you can instert these lines into your script.
ProgressBarFast.vbs or ProgressBar.vbs , as well as ProgressBar.log must be included in the same directory as your script.
---------------
Files
ProgressBarFast.vbs is to use for fast process that last between 5 seconds to 5 minutes.
ProgressBar.vbs is to use for very slow process that can last several hours.
ProgressBar.log contains the datas needed by the progressbar script. your script must write a header (see sample) then "+1" for each item procesed at the end of this file.
_________________
Advantage:
1/ It's a purely textbox based progressbar. It doesn't require any dll installation and doesn't invoke heavy duty IE function or something.
It's fast and purely no-nonsens VBS.
2/ Modify and adapt the progressbar script as you please
3/ "ok" will make the taskbar disapear for a while then will come back after an intelligent period of time.
4/ "cancel" will stop the process without causing an error by leting an item half done.
-----------------
Downsides and limitations:
1/ This progressbar is not minimizable. It can be irritating to have it poping up all the time. In this case clic "ok".
However, in some case it can be useful to prevent user from using their computer during the process! :)
2/ "Cancel" won't be able to kill the process if the item being processed freezes, crashes or doesn't respond (in this case you will have to Ctr+Alt+Del).
It can stop only after the item is finished but can you copy-paste the code to terminate the script in several places in you main script.
3/ Design limited to the basic MsgBox. but we do VBS aren't we? ;)
<message edited by Snipah on Saturday, November 05, 2005 7:47 PM>