Skip to Content
author's profile photo Former Member
Former Member

Calling a external WAS program from a view

Hi all.

I'm trying to call an external WAS program from a view. The external program is a emulator that is installed on c:emulator (frontend). It's composed by more than one files and is necesary to run the exe file inside the directory.

I has been trying with two possible solutions:


I implemented a JavaScript. When the user press a link the JavaScript create an active control:

var ws = new ActiveXObject("WScript.Shell");

with this JavaScript is called the emulator.exe but it dont't work !!!! the application is launched but don't finish with the charge of data and don't respond, its like i get the emulator.exe and copy it to the root c: !!! it don´t work because need the other files inside the directory c:emulator. I suppose that this file (emulator.exe) is upload to the server like a MIME at runtime and executed (it never gonna to run because is necesary to upload all the files--- i suppose it).


When the link is pressed the controller's view catch the event


and i use the class


for execute the application but it raise an error.

i knows that sound strange imaginate one internet page executing programs in your pc but i need to do it.

If some body can help me.....

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Mar 11, 2004 at 08:28 PM

    Hello Armando,

    why don't you ask the user kindly to run this program? Why must it be started from the Web page?

    You really should care about security. Would you like it that everyone can run programs on your computer?



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 12, 2004 at 01:55 PM

    Or you let the user to download the doc and open it in an editor of his choice. thats we way -I guess- most websites do.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.