Solved

Execute setup.exe with Java in html

Posted on 2004-04-28
11
342 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
Comment Utility
I don't think that you can do that from the HTML.
0
 
LVL 9

Expert Comment

by:mmuruganandam
Comment Utility
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:mayankeagle
Comment Utility
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
Comment Utility
I think you cannot do in this case, and u can try using FTP application...

R.K
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 7

Expert Comment

by:maheshexp
Comment Utility
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:mayankeagle
Comment Utility
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
Comment Utility
Do you need the code for a Java Applet that can do this?!
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
Points - mmuruganandam.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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)
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

743 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

11 Experts available now in Live!

Get 1:1 Help Now