Hi,
This following script executes a traceroute to 213.13.135.13 every ~30
seconds.
--------------------------------------------------
option explicit
dim so
dim st
st = timer()
while true
if (timer() - st) >= 30 then
set so = createobject("wscript.shell")
so.run "cmd /c tracert 213.13.135.13"
set so = nothing
st = timer()
end if
wend
--------------------------------------------------
... the problem is that the "while true" loop consumes 100% of CPU.
Is there a better way of doing this? Something like a "sleep" method?
Thanks,
rusga