>
> Was wondering if there was a way to show the status of a script by doing
> something like the following:
>
> C:\Script in Progress...10%
>
> then when the script continues it will look like this
>
> C:\Script in Progress...20%
>
> I would like to do this so it doesnt take up the whole screen with a bunch
> of "..........". If I have 300000 loops, that is a lot of periods. I know
> how to figure out the percentage. Just need to know how to replace the
> text... Replace the text where? You didn't say.
If you're using an HTA you can use script
to replace the text. You could also leave
the basic text the way it is, use a LABEL
for the number, and change the LABEL
innertext property. If you use STYLE to
set the font, etc. of both a span and a label
you should be able to make it look blended:
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="VBScript">
Sub Count(NumberValue)
LabCounter.innerText = NumberValue
End Sub
</SCRIPT>
</HEAD>
<BODY onload="Count(30)">
<SPAN ID="counter"> Curent progress... <LABEL
ID="LabCounter"></LABEL></SPAN>
</BODY></HTML>