It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

how to call .exe file using html.

how to call .exe file using html.

Postby shivac on Wed Feb 11, 2009 5:08 am

hi,
i m newbie for this html, can any one help me how to call .exe files using html. i m using this code
<form action="C:/Program Files/jasperserver-3.1/ireport/bin/ireport.exe" method="post">. this is the way to call or i using wrong method?. can anyone provide a guidline.

i want to execute .exe file which should normally placed anywhere.

Thanks in Advance,
Shivac
shivac
 
Posts: 1
Joined: Tue Feb 10, 2009 1:11 pm

Re: how to call .exe file using html.

Postby flabbyrabbit on Wed Feb 11, 2009 10:35 pm

I think that this has been blocked for security reasons. Imagine if a website could run any program on your computer?!?!

Many sites like veoh and itunes use a different protocol, like http:// and ftp://. The only way for this to work though is to edit the registry of the computer. So unless you have created the program yourself or its only for your computer I don't know of a way to do it, sorry.

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Re: how to call .exe file using html.

Postby flabbyrabbit on Wed Feb 11, 2009 11:01 pm

Actually I am not quite right, you can use:
Code: Select all
<a href="javascript:LaunchApp()">Launch the executable</a>

<script>
function LaunchApp() {
if (!document.all) {
  alert ("Available only with Internet Explorer.");
  return;
}
var ws = new ActiveXObject("WScript.Shell");
ws.Exec("C:\\Program Files\\Adobe\\Photoshop 6.0\\Photoshp.exe");
}
</script>
http://www.experts-exchange.com/Web/Web_Languages/Q_20694402.html

But it only works on IE

Flabby Rabbit
Image
User avatar
flabbyrabbit
500+ Club
 
Posts: 706
Joined: Thu Jan 25, 2007 1:10 pm
Location: Midlands, England

Re: how to call .exe file using html.

Postby simran on Mon Feb 16, 2009 6:25 am

flabbyrabbit gave you quite a nice solution.you should try this method it ll work for sure..
simran
 
Posts: 8
Joined: Sat Jan 17, 2009 7:12 am


Who is online

Users browsing this forum: No registered users and 5 guests