Calling a program from a VBScript ASP page
-
I have this OLE object supplied by a 3rd party software company. I use the code,C Set obj = CreateObject("name.application"), to run the code. This calls up the actual program, which includes a windows interface. By the companies own code, you are to use SendKeys to enter the username and password information in their login window, before the application will come up and you can then interact with the methods/properties of obj. The problem I am having is that, while I can get this to run from a VB6 program or a VBS script, I cannot get this to run from an ASP page written in VBScript. A code segmet that I'm attempting to use is below: Set obj = Server.CreateObject("name.Application") set oShell = Server.CreateObject("WScript.Shell") oShell.SendKeys "{TAB}" & "{TAB}" & "{TAB}" & "{TAB}" & _ "" & "{TAB}" & "" & "{ENTER}", True obj.RunFile "test1.dxl" str = "oleSetResult ""Hello World""" obj.RunStr str Any thoughts on how to get this type of scenario to work? -cbonn1