Solved

Execute setup.exe with Java in html

Posted on 2004-04-28
11
349 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 18
What is JNDI datasource in spring 1 50
web services creation SOAP vs REST 5 17
table example 4 19
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

932 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now