9 replies
by ebob
Sorry, there is no JavaScript that will perform this.
You could try a simple link:
Run This
but I believe the functioning of this will depend to at least some extent on the setup of the user's Browser.
by chinmoy_b
by ebob
Since the behaviour of a simple link (as in my previous response) is browser dependent, you need to look at providing a solution on the server, itself.
That is to say: there is no "simple" solution.
But a quick little CGI (written in Perl, forexample) that calls the executable would definitely work. You might also be able to reconfigure your server to run the executable. The details depend on what server you're using. Both of these also require that you have access to run executables from your website.
U can definatly execute an exe from java code...u can always embed java code in html...
Use exec() of java.lang.Runtime class to execute any exe namely notepad....
This method will execute the specified string command in a separate process...in case u want code ::
Runtime r = Runtime.getRuntime();
r.exec("Notepad");
note ::
I had forgot to mention entire path in exec()
r.exec("C:\WINNT\Notepad");
(sssuming u r working on NT/2000)
pratibha malhotra
by chinmoy_b
by chinmoy_b
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending