Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script error when launching apps

Status
Not open for further replies.

lpb71

Technical User
Joined
Mar 10, 2004
Messages
57
Location
GB
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.
 
Download the latest wsh package wsh5.6 from ms download site.
 
I cant update these systems, they are thin client systems and there is about 1500 of them.
 
Use run then.
[tt]wshell.run "C:\PowerTerm WebConnect 5.5\tstpwc01 PtRdp.exe tstpwc01 /user=*xxxx /noselfupdate /NO_C2S_DLG"[/tt]

 
Got it working now with the following line

"""C:\PowerTerm WebConnect 5.5\tstpwc01\PtRdp.exe tstpwc01 /user=*xxxx /noselfupdate /NO_C2S_DLG""
 
Sure you need to take care of that yourself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top