Click here to Skip to main content
15,940,246 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to execute a exe file in browser using HTML.

for that how can i do?

please help me.

Rgds,
Narasiman P.
Posted

Sorry, but that makes very little sense.

HTML is a markup language, not a programming language. It is not executed itself and therefore cannot call other executables.

Then, a browser is on the client side. Where is the EXE you want to run? On The server? If a million people people send a request to you server, will it then be running a million times?

Or do you want to download it to the client and execute it there? That could be interpreted as an attack and in some countries earn you an appointment before a court.
 
Share this answer
 
Assuming that the executable is already installed on the client computer, you can try following idea:
create your own "protocol" and store its information in the appropriate place in the registry; the handler for the protocol is your executable. In your HTML page, add a link which uses your protocol, i.e. something like
<a href="narasiman://a_parameter">Click here to open the executable</a>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900