I have created a simple script below to launch an application with a delay.
'On Error Resume Next
Dim wshell
Set wshell = wscript.createObject("wscript.shell")
wscript.sleep 1000
call wshell.Exec ("C:\PowerTerm WebConnect 5.5\tstpwc01 PtRdp.exe tstpwc01 /user=*xxxx /noselfupdate /NO_C2S_DLG")
The script works fine on XP but I get an error when trying to run this on NT. Error: object doesn't support this property or method 'Exec'
Any Idea how to convert the above script to work on NT.
'On Error Resume Next
Dim wshell
Set wshell = wscript.createObject("wscript.shell")
wscript.sleep 1000
call wshell.Exec ("C:\PowerTerm WebConnect 5.5\tstpwc01 PtRdp.exe tstpwc01 /user=*xxxx /noselfupdate /NO_C2S_DLG")
The script works fine on XP but I get an error when trying to run this on NT. Error: object doesn't support this property or method 'Exec'
Any Idea how to convert the above script to work on NT.