Results 1 to 2 of 2

Thread: running app from server

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2001
    Posts
    3

    Talking

    I am new to VB, and just wondering if anyone has any ideas here...

    I am trying to write a webpage (maybe some ASP) that has a clickable menu system to launch a series of home-grown applications. I want every .exe to reside on the server, and the user should be able to run and interact with the program w/o downloading the file locally.

    Would I need to use an ActiveX control for this purpose, or how else would I do it?

    Any help would be appreciated...thanks.

    Mike

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844
    Hey Mike

    This works for me:

    Code:
    <%@Language=VBScript%>
    <% option explicit
    
    dim objShell
    
    set objShell = server.CreateObject("WScript.Shell")
    
    objShell.Run("calc.exe")
    
    set objShell = nothing
    
    %>
    be careful with this though, each time the page is executed a new instance of your app will be launched. I tried to use the task manager to kill the process and it said "access denied", even after I restarted the IIS services.....


    Tom

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