Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 08:43:38 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Problem in HTML  (Read 255 times)
chetan1
Space Explorer
***
Offline Offline

Posts: 7


« on: May 05, 2008, 01:41:47 AM »

Hi
How to make a link from my webpage to my executable program (language used is VB6) without encountering "File Download" using HTML codes?

Using "<a href...> Click </a>", I can link my .exe program to my page but the problem is that before it opens my .exe program, a "File Download" message box appears showing 4 buttons - open, save, cancel and more info. I want to open a link to the .exe program without encountering that message box. Please help.


website design
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6174



WWW
« Reply #1 on: May 05, 2008, 05:27:09 AM »

Not sure this could be done.  Could you explain why you want to launch an exe file? 
Logged

chetan1
Space Explorer
***
Offline Offline

Posts: 7


« Reply #2 on: May 05, 2008, 11:48:30 PM »

Hi
I said b4 that  it opens my .exe program, a "File Download" message box appears showing 4 buttons - open, save, cancel and more info.If anyone download ,have a option to download.






website design
Logged
Mitch
Lunarpages Traffic Cop
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 6174



WWW
« Reply #3 on: May 06, 2008, 05:46:13 AM »

You won't be able to run the .exe file from the server itself, it would have to be downloaded before anybody could do anything with it. 
Logged

MrPhil
Über Jedi
*****
Online Online

Posts: 2834


« Reply #4 on: May 06, 2008, 02:18:35 PM »

OK, you have a compiled and linked VB program as an .exe file. Right? What are you trying to have happen when someone clicks on the link in your HTML? As Mitch said, it won't run on the server; it needs to be transferred to the visitor's PC first. A visitor should see a dialog asking whether they want to run or save the program, or maybe do something else (cancel, tell more about it,...). The last thing anyone would want is for the program to run all by itself, without giving a chance to be examined for viruses, etc. That would be a horrendous security exposure, and you'd have so many lawsuits filed it wouldn't be funny. Not even the most brain-dead Microsoft browser will let you do that. So, what is it you're trying to do?

On the other hand, are you trying to run something on the server when the visitor clicks the link? A Windows program (.exe) won't run on a Linux server anyway. It might run on a Windows server, but I won't guarantee it. What kind of server are you on, and what are you trying to have this program do?
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM