"WScript.Sleep 250" is a statement that only works in "stand-alone" scripts (.vbs, .wsf) When you use VbScript in a webpage (.html, .hta, .asp, ...) you'll need to use "window.setTimeout"
I don't think window.settimeout will work in this situation. This is server side code only. I need to control a loop in vbscript on the server, not in html. WScript.Sleep does not work either. How would pause/sleep a loop? An example would be nice. I can't find one anywhere.
thanks.
<% set WshShell = WScript.CreateObject("WScript.Shell") for x = 1 to 5 response.write " its about time" & "<br>" WScript.Sleep 250 next %>
AS far as I can tell, windows scripting does not run on a server. Its a desktop and command prompt technology. I guess I'm going to have to find some other way of stopping/pausing a server side script.