Results 1 to 4 of 4

Thread: Calling an application from VBScript

  1. #1
    Guest
    We use a third party application which can execute VBScript
    code. How can I call a standard VB application from VB Script?
    I tried using CreateObject("Shell.Application") but this gives an error since the Shell32 library has not been referenced.

    Thanks for any help.

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    I don't know much about VBScript but you can try this:
    Code:
    <object id ="shell" progid = "WScript.Shell"/>
    <script language  ="VBScript">
    Return = shell.run("CharMap")
    shell.AppActivate Return
    </script>
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  3. #3
    Guest
    Thanks. But this application cannot execute any HTML code.
    Any more ideas?




  4. #4
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Not Sure Again But Try This:
    Code:
    Dim WSHShell
    Set WSHShell = WScript.CreateObject("WScript.Shell")
    Return = WSHShel.run("CharMap")
    WSHShel.AppActivate Return
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width