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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCOMM not working in vbscript

Status
Not open for further replies.

moving

Programmer
Joined
Aug 26, 2001
Messages
4
Location
US
Now PCOMM not working in vbscript. Does anyone know of any problems running PCOMM classes in vbscript to conncet with AS400. The following works on some computers (sends"123" to the AS400), but not others.

Dim autECLPSObj

Set autECLPSObj = WScript.CreateObject("PCOMM.autECLPS")

Dim autECLConnList

Set autECLConnList = WScript.CreateObject("PCOMM.autECLConnList")

autECLConnList.Refresh

autECLPSObj.SetConnectionByHandle (autECLConnList(1).Handle)

autECLPSObj.SendKeys "123"

set autECLPSObj = nothing

set autECLConnList = nothing

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top