cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Opening/running other applications from xMII page

Former Member
0 Kudos
209

Is there a way to open other programs (say VB based .exe file) from xMII screen. I mean could we provide a link in xMII to execute a .bat or .exe program? Any idea would be greatly appreciated...

My requirement here is to have links to various programs in the xMII screen. If the user has to open another application, he would then click one of these links to open and run the program. Thanks...

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Jeremy,

You said - "The assumption from that point would be that the location to the .bat or .exe file is fully pathed or included in the system path somehow, and this would also be entirely dependent upon the client having the associated application locally."

To confirm my understanding - Even if I were to give the full path of the .exe file (exisiting on some system) in the xMII link, the application still needs to reside on the client machine from which xMII link accessed? Pls. confirm

jcgood25
Active Contributor
0 Kudos

Yes - I meant that in order for a client computer to launch an application .bat or .exe file it would have to be either installed locally on the client computer or on a network share that the user had access to.

To Sasaha's point - the browser security is quite strict, but maybe with VBScript you could get this to work like the link in Abesh's post.

Former Member
0 Kudos

Jeremy,

I added the path of the .exe file as a link in xMII like


m/c name\path\program.exe

When I went to the client machine and clicked on the link, it didn't launch the program.

Am I missing something here. Appreciate your help.

Thanks

Former Member
0 Kudos

Yeah, we tried this at a customer site for similar reasons.

Good luck with it. >:*)

In IE's location bar, of course an address with http:// will navigate to the web page. And if you type in an MVC path in the location bar, it will open the folder or application (kind of dynamically switches from IE to Windows Explorer). However, in the content window of the browser, this automatic switching WILL NOT happen.

The best you'll be able to do is put the application in the a web-accessible directory and hope the user's have access to the file and that the browser is able to open it.

Perhaps rewriting this server application in xMII is a good project.?

It's kind of like in chemistry class when the teacher says "Practice safe chemistry: don't mix your solutions with mine" - Keep web applications, web applications and keep desktop applications, desktop applications...

... or sooner or later something will blow up.

jcgood25
Active Contributor
0 Kudos

You know this really has nothing to do with xMII, except for the web page being on the xMII server. Like Ryan and Sascha both mentioned - mixing html with app links is quite messy. You might be better off just searching for samples on Google.

Regards,

Jeremy

jcgood25
Active Contributor
0 Kudos

Srinivasan,

Any hyperlink (at least one that doesn't look like an activex control or security breach to Internet Explorer) that you put into an html page should be 'clickable' by the user. The assumption from that point would be that the location to the .bat or .exe file is fully pathed or included in the system path somehow, and this would also be entirely dependent upon the client having the associated application locally.

Regards,

Jeremy

sufw
Active Participant
0 Kudos

Hi Jeremy,

I'm not too up-to-date on IE's security model, but I quickly tried a very simple HTML page:


<html>
<head><title>test page </title></head>
<body>

  <a href="file:///C:/WINDOWS/NOTEPAD.EXE">Try me!</a>

</body>
</html>

This works when I open the file from my local file system (not via IIS). However, when I access the file on a remote server via IE, nothing happens when I click on the link.

How did you think this could be done?

Sascha

abesh
Contributor
0 Kudos

Check out <a href="http://msdn2.microsoft.com/en-us/library/d5fk67ky.aspx">http://msdn2.microsoft.com/en-us/library/d5fk67ky.aspx</a>

This may need tweaking the IE Security settings.