Skip to Content
author's profile photo
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:

1)

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

var ws = new ActiveXObject("WScript.Shell");
ws.Exec("c:/emulator/emulator.exe");


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).

2)

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

DO_HANDLE_EVENT

and i use the class

cl_gui_frontend_services->execute

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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

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?

    Regards

    Gregor

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Gregor Wolf

      Hi Gregor.

      The emulator run at MS-DOS mode. When i call it from my view, it runs into a windows (other browser). I suppose that it can ported to java. If you can help me i will apreciate it.

  • author's profile photo
    Former Member
    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 comment
    10|10000 characters needed characters exceeded