Flash Games

 FAQ   Search   Members   Groups   Register  User Control Panel      Login 

Your time now:
Mon Nov 23, 2009 4:07 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ]  Bookmark and Share
Author Message
 Post subject: how to call .exe file using html.
PostPosted: Wed Feb 11, 2009 6:08 am 
Offline

Joined: Tue Feb 10, 2009 2:11 pm
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: how to call .exe file using html.
PostPosted: Wed Feb 11, 2009 11:35 pm 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
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

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
 Post subject: Re: how to call .exe file using html.
PostPosted: Thu Feb 12, 2009 12:01 am 
Offline
500+ Club
User avatar

Joined: Thu Jan 25, 2007 2:10 pm
Posts: 691
Location: Midlands, England
Actually I am not quite right, you can use:
Code:
<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

_________________
http://www.hackthis.co.uk


Top
 Profile  
 
 Post subject: Re: how to call .exe file using html.
PostPosted: Mon Feb 16, 2009 7:25 am 
Offline

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

_________________
Web design services l New York Web Design


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games - TNX Invitation Code - TNX Review

Webmaster - Excruciating - Johnathan - Kotik - Ash - Tomi - rangana - Phate - dflynn - Medley