I thought I remember a script I had lying around, for my old Windows NT
days, that I can't seem to find, that did exactly that, maybe i'm
wrong, not sure.
Really all it needs is a progress bar that fills from 0-100% in 30
seconds, to replace the sleep command I am currently using
If you are not willing to accept an actX component, I expect you
are going to be stuck with IE.
If you _ARE_ willing to accept an actX component, then I have
some further suggestions...
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
http://www.microsoft.com/technet/scriptcenter/scripts/misc/progress/mspgvb01.mspx
Offers an example of how you could show a crude progress bar.
I guess ocx's have such a bad rep that microsoft is keeping them
off the newsgroup(s?).
Look, if you really want to use something better than IE for
dialogs in your script, I suggest AutoIt (the language, not the
actX object). It has a more-or-less complete "forms capability"
(although in AutoIt-speak, they are not forms, they are GUI's).
They also have a purpose-built progressbar dialog:
---- <snippet in autoit> ----
; comments in autoit are indicated by a semi-colon, not single quote
; progresson shows the dialog, progressoff hides it.
; progressset sets the pbar to the indicated percentage.
; variable names all start with a "$" (dollar-sign), which is
; annoying, but hey, the benefits are worth that little aggrevation.
;
ProgressOn("Progress Meter", "Increments every second", "0 percent")
For $i = 10 to 100 step 10
sleep(1000)
ProgressSet( $i, $i & " percent")
Next
ProgressSet(100 , "Done", "Complete")
sleep(500)
ProgressOff()
---- <end snippet> ----
If interested, autoIt may be found here:
If you are thinking that I shouldn't be mentioning a non-Microsoft
product on a vbScript newsgroup, you have a point. However,
Microsoft declared several years ago that no further enhancements
to the vbScript product would be forthcoming. And so, an alternative
product which does seem to be moving along with steady enhancements,
and some valuable ones for scripting (for example: api calls and
better graphical interfaces than msgboxes) imho does deserve some
credit for their work and consideration as an alternative when
vbScript doesn't measure up.
cheers, jw
____________________________________________________________
You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)
---- <rejected posting> ----
Matthew, here is one such actX object, called "wshNonModalDialog.ocx"
which can be used to show status messages and a progressbar.
There is also a demo script.
The ocx must be registered before it can be used.
cheers, jw
p.s. Your company net administrator, your security software, or
your mail reader may throw up when it sees the ocx. I believe
that Norton will call it "malicious". Anyway, if it gets blocked
then I can email it to you, if you are willing to provide a real
email address...
p.p.s. As with any 3rd-party control, you should treat this
ocx with extreme caution. It's best to only use it first on a
test system for about three-to-five years, to make sure that
there are no undesirable side effects from using it...
--
mayaya...@mindXXspring.com
(Remove Xs for return email.)