Run an executable from a web link

Run an executable from a web link

Postby Rick Lipkin » Tue Jun 17, 2008 12:15 am

To All

I am working on an application that needs to run from our internal intranet .. meaning that when a user clicks on an html link .. my program will run .. from a unc \\server\volume\folder\my.exe

Our Web master is having difficulty in getting a web link to run my ( external ) program. The executable is on the web server .. just having difficulty launching the program from a web link.

Any Ideas ?? vb script ??

Rick Lipkin
SC Dept of Healch, USA
User avatar
Rick Lipkin
 
Posts: 2616
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby quique » Tue Jun 17, 2008 6:03 am

occurs itself me download a bat with the line

\\server\volume\folder\my.exe

when the user click in the link http://server/runProgram.bat it download and the user select run it.
Saludos
Quique
User avatar
quique
 
Posts: 408
Joined: Sun Aug 13, 2006 5:38 am

Postby xProgrammer » Tue Jun 17, 2008 12:22 pm

Hi Rick

My initial reaction was that this would constitute a huge security risk and probably should be impossible (although it would be very handy).

However its exactly what "mail to" does, although that's presumably a specially hard coded feature.

To do it you (apparently) need to run an ActiveX control (assuming a Windows platform) to handle the launching (and by its setp deal with the very real sceurity issues involved). See:

http://www.whirlywiryweb.com/article.as ... launchinie

You could of course write your own ActiveX control that did the necessary work but that sounds rather difficult to me, so I hope that the above works for you.

Regards
Doug
(xProgrammer)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby xProgrammer » Tue Jun 17, 2008 12:50 pm

The only Linux / Windows solution I can see is to run Mozilla use XUL and install Chrome URLs which have special privileges with respect to local access - but this is all technology new to me (and most people I suspect) and I have absolutley no knowledge of or experience in such environments at present.

Regards
Doug
(xProgrammer)
User avatar
xProgrammer
 
Posts: 464
Joined: Tue May 16, 2006 7:47 am
Location: Australia

Postby Rick Lipkin » Tue Jun 17, 2008 1:13 pm

BUMMER ... I would think putting a link to an executable on an intranet page would be simple .. obviously this is a major head-ache ..

Rick
User avatar
Rick Lipkin
 
Posts: 2616
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby Dietmar Jahnel » Wed Jun 18, 2008 6:57 pm

I'm using html.lib provides by xHarbour.or and do this in a form

DEFINE FORM oForm NAME "PDFDownload" ;
COLOR "WHITE" ;
WIDTH 60 ;
ACTION "/cgi-bin/dodown.exe"

The same can be done with a link.
Is this what you are looking for?

Dietmar
User avatar
Dietmar Jahnel
 
Posts: 83
Joined: Mon Oct 17, 2005 10:33 am
Location: Austria

Postby Jack » Thu Jun 19, 2008 9:23 pm

I have the same situation .
I have an exe application in a shared directory (server)
I have a short cut to my Exe .
Our web master has establish a link to this shost cut and it works .

It suppose that the user has good access right to the shared directory and that he has a network drive mapped to the server .

Hope that it could help you .
Jack
 
Posts: 280
Joined: Wed Jul 11, 2007 11:06 am

Postby Gale FORd » Thu Jun 19, 2008 10:10 pm

I like the idea of OLE also. I know you can do it with xHarbour.com. Make a ole server register it on the server and use vbscript, java, or xbsript to access it.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Postby Rick Lipkin » Thu Jun 19, 2008 11:35 pm

To All

YES ... we have it working ... I will have to give everyone the html .. our web master told me he ( basically ) is calling the program .exe from a unc ..

We do get some security warning from IE .. but just RUN and OK .. and the program executes.

One thing that makes my setup easy is that I am using ADO to connect to an external MS Sql server .. no .dbf or indexes to worry about .. just have one executabe and the prev32.dll to worry about publishing.

Rick
User avatar
Rick Lipkin
 
Posts: 2616
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby Rick Lipkin » Sat Jun 21, 2008 1:52 am

As promised .. here is the html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>PMO Project</title>
</head>
<body>
<h1 align=center>PMO Project</h1>
<br>
<p align=center><a href="\\webdev\pmo\pmow32.exe">PMO</a></p>
</body>
</html>

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2616
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby Antonio Linares » Sat Jun 21, 2008 8:31 am

Rick,

Thats the way FWH users download the files from the FiveTech website (using login and password) :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Rick Lipkin » Sat Jun 21, 2008 1:08 pm

Antonio

YES .. when you click on the link you get the option to RUN or DOWNLOAD .. when you click RUN .. you get one last security warning .. and then the application executes and runs .. a bit clumsy but it works.

You have to remember, this is being launched within our intranet and behind our corporate firewall .. there are no logins and the link is available to everyone.. (5k potential users )

Copying the executable to all 300 plus servers or presenting this with 'thin client' via Citrix was not where I wanted to go with the distribution.

If any scripting guru's have a way to get around the RUN or DOWNLOAD option .. ( perhaps a vb script ??) .. please chime in here !!

Rick
User avatar
Rick Lipkin
 
Posts: 2616
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby George » Tue Dec 16, 2008 12:56 am

Hi Rick,

I have some question regarding xHarbour + FWH application running through IE browser to connect an intranet server.

Do you have any update regarding this topic?
I mean if you were able to skip the RUN/DOWNLOAD issue.

Is your application developed with [x}Harbour + FWH?
It's working OK?
Do you have any other issue other than connectivity?
How is the speed? Are you using DBF, ADT or SQL database?

Any other information/experiences that you want to shared with us?

Regards

George
George
 
Posts: 724
Joined: Tue Oct 18, 2005 6:49 pm

Postby Rick Lipkin » Tue Dec 16, 2008 11:34 am

George

The run/download is normal Explorer behavoir and is something I just tell users to deal with

My application is xHarbour and FWH 8.11 and the application is running flawlessly

I am connecting to a MS Sql database using xHarbours TOleAuto() class via ADO and OLEDB. This is why all I need is just the executable. The connection string is burned into the exe and tables are external to the application.

Speed is great .. it is running on our Agency's IntRanet.. all is well !!

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2616
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Postby George » Tue Dec 16, 2008 6:55 pm

Hi Rick,
Great to know that everything is working fine.

In summary as I understand:
1. The application and database is in server (intranet)
2. The user access the software by IE browser with following code.
Code: Select all  Expand view
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>PMO Project</title>
</head>
<body>
<h1 align=center>PMO Project</h1>
<br>
<p align=center><a href="\\webdev\pmo\pmow32.exe">PMO</a></p>
</body>
</html>


A final question:
Is possible to use a normal internet connection or we need VPN/Citrix to connect to the intranet server for this type of application?


George
George
 
Posts: 724
Joined: Tue Oct 18, 2005 6:49 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests