Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Run Executable on Client Machine

 
brad ryan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please suggest me how I should launch a stand alone application from a browser.
I'm are trying to build a web page from which I want to launch some of the applications which on the local hard drive of the Client.
I'm using JSPs for my web pages. Right now I'm just pointing to the related executable using <a href > (< a href="file///C:\Program Files\xyz\bin\xyz.exe target="_blank"). I don't think this is a nice way to launch the application because It doesn't alert or warn the user if it could not find the exe on the path specified.
Basically, Thru my web site I want to search the Cilent's hard drive for an executable & run (or launch the application ). If it can't find the exe then alert or warn the user.
I'm a new bee to programming. so please don't think that it ia dumd question. Please Please suggest me or help me with a code to do this..
Thank you all in advance
br
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think this is what is commonly known as a virus. YOu can't run an executable from the browser without special privileges for you applet. You can use webstart to download the program from your hard drive though. Otherwise you might have to write this executable yourself as an applet.
(btw, you might want to know that if the guys on the ranch catch you with that name they will ask you to change it - they prefer you real name)
chanoch
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by chanoch wiggers:
(btw, you might want to know that if the guys on the ranch catch you with that name they will ask you to change it - they prefer you real name)

The JavaRanch Naming Policy.
Where to edit your profile
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic