Question: How to set delay in vbscript?

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

Answer: 
If you're trying to simulate a sleep delay in VBScript but WScript is not available (eg: your script is called from Microsoft's BGInfo tool), then try the following approach.

The example below will delay until 10 seconds from the moment the instruction is processed:

```
Dim dteWait
dteWait = DateAdd("s", 10, Now())
Do Until (Now() > dteWait)
Loop

```
The following line will make your script to sleep for 5 mins. 

```
WScript.Sleep 5*60*1000

```

Note that the value passed to sleep call is in milli seconds.