Question: How to set delay in vbscript?

`WScript.Sleep(100)` does not work on Windows XP, Vista.

Answer: 
if it is VBScript, it should be 

```
WScript.Sleep 100

```

If it is JavaScript 

```
WScript.Sleep(100);

```

Time in milliseconds. WScript.Sleep 1000 results in a 1 second sleep.
better use timer:

```
Sub wait (sec)
    dim temp
    temp=timer
    do while timer-temp<sec
    loop
end Sub

```