nuritat
asked on
Execute setup.exe with Java in html
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!
could you help me with the script?
Thanks allot!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 ;-) ?
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 ;-) ?
I think you cannot do in this case, and u can try using FTP application...
R.K
R.K
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...
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?
Do you need the code for a Java Applet that can do this?!
Points - mmuruganandam.
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.