JadeKnight
IS-IT--Management
I need to trigger an event in script when each time a counter passes a given number. Let's say 1000.
Below is a sample of what I want to achieve.
I've red on the while... wend, but I think maybe a smart if statement also will do the thing.
Any help would be appreciated ...
Below is a sample of what I want to achieve.
Code:
Option Explicit
Dim oShell
Dim iCounter,i
'Create Shell object
Set oShell = Wscript.CreateObject("Wscript.Shell")
iCounter = 0
wscript.echo iCounter
For i = 1 To 100000
iCounter = iCounter + 1
If [some statement when iCounter is 1000, 2000, 3000 etc...] Then
wscript.echo iCounter
End If
Next
Set oShell = Nothing
I've red on the while... wend, but I think maybe a smart if statement also will do the thing.
Any help would be appreciated ...