Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Calling a program from a VBScript ASP page

Calling a program from a VBScript ASP page

Scheduled Pinned Locked Moved Visual Basic
comsysadminlinuxtools
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cbonn1
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups