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.
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.