Solved

Execute setup.exe with Java in html

Posted on 2004-04-28
11
357 Views
Last Modified: 2010-03-31
Please. I'm not very familier with Java programmimg and I need to write a command that executes "setup.exe" after the user clicked on a button in an html page
could you help me with the script?

Thanks allot!
0
Comment
Question by:nuritat
11 Comments
 
LVL 9

Accepted Solution

by:
mmuruganandam earned 500 total points
ID: 10937924
I don't think that you can do that from the HTML.
0
 
LVL 9

Expert Comment

by:mmuruganandam
ID: 10937954
Have a look at the following...
http://www.eggheadcafe.com/articles/20010329.asp

You can't really execute any programs directly.  If you have any activeX attached to that, then only you are allowed to do that.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10938076
Well, this is not much of a question for a Java expert to answer. Its more for an HTML expert to answer ;-) anyway, you cannot directly invoke an exe from an HTML if you're looking plainly at that.

One way could be -> the HTML contains an Applet tag -> the Applet has permissions and on init (), it starts a Runtime.exec () command which starts the exe -> he he, I'm being too imaginative, am I not ;-) ?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 23

Expert Comment

by:rama_krishna580
ID: 10939942
I think you cannot do in this case, and u can try using FTP application...

R.K
0
 
LVL 7

Expert Comment

by:maheshexp
ID: 10940135
every browser will pop up when u will click on a file, and asks for users option to save or open it.....it's not a matter of java, it's a matter of HTML and the browser...
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10940521
But he didn't ask about clicking and saving a file, did he? You mean to give a link to the setup.exe file and then ask the user to click on it to save/ open (run) it?
0
 
LVL 9

Expert Comment

by:doronb
ID: 11274839
Do you need the code for a Java Applet that can do this?!
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 11677986
Points - mmuruganandam.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tomcat startup error 5 102
maven disable workspace resolution 1 21
ejb entity bean example 2 10
Running JavaFX on the Raspberry Pi 27 38
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question