Login | |
|
 |
RE: vbs functions in hta? - 5/21/2007 4:04:58 AM
|
|
 |
|
| |
Rischip
Posts: 510
Score: 2
Joined: 3/26/2007
Status: offline
|
My reply is in response to the original post. Wscript.Sleep does not work in HTA. Anything you use in an HTA to get around this will be a hack. What I do is as follows. -----External sleep.vbs file--------- Set WshShell = WScript.CreateObject("WScript.Shell") Set args = wscript.arguments Wscript.sleep (args(0)*1000) -----End External sleep.vbs file--------- Then call the vbs from the HTA Set oShell = CreateObject("WScript.Shell") command = "cscript " + Directory of the file + "\sleep.vbs " + " 1"(<- the number of seconds to sleep) oShell.Run command, 0, True
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
|
|