Launch EXE from Web

Hi All,

I have a requiement. I need to open Some applications say notepad.exe or calc.exe on click of respective buttons. This is a Web based Application running on IE. I tried the following code on click of a button called calc,

It in turn calls agent through @command(toolsrumacro);“agentname”)

agent

Dim taskId As Integer

taskId% = Shell(“CALC.EXE”, 1)

It works fine in client, but in web it is not working.

any Help :frowning:

Subject: You see no security problems with this ?

:slight_smile:

Subject: Launch EXE from Web

There is a number of problems in what you are trying to do:Running execubable can cause all kinds of security problems, for the agent to allow this to happen the agent signer has to have very high priviledges. I suspect you do not.

Even if you had the rights to run it, web agents run on the server so the calculator would pop up on the server not in the browser. Is that what you want? I suspect not.

There are many differences between client and server agents. I think you might find it useful to read Agent FAQ, some of the articles go over the differences between client and server, and web agents are server agents.

Subject: Launch EXE from Web

agents called by the browser execute on the server. The browser has no ability to run Lotuscript code. If this were to work (which it would if you permitted the agent signer to run unrestricted agents on the server) it would launch notepad on the server, probably not the desired result. Look in to Javascript or possibly VBscript (because it is less secure) to get this to work. The browser will quite rightly try fairly hard to prevent you doing this.