Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a jsp web page and i want that after clicking link or button some desktop apps should be opened(like calc, notepad, media player, webcam etc).
So, please help me for it....
Posted

1 solution

Try something like below

Quote:
Launch the executable

<script>
function LaunchApp() {
var ws = new ActiveXObject("WScript.Shell");
ws.Exec("C:\\Windows\\notepad.exe");
}
</script>
 
Share this answer
 
Comments
enhzflep 20-Oct-13 11:46am    
Does your solution satisfy this part of the requirements?
"by any web browsers not only IE"
Ranjan.D 20-Oct-13 12:12pm    
Hmm.. the code doesn't.. I would go with server side using ProcessStartInfo

http://www.willasrari.com/blog/run-a-command-shell-executable-from-aspnet/000155.aspx
ranjan_working_on_jsp 21-Oct-13 1:52am    
it doesnt work except on IE

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900