Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Start a local application from a html/js page (ex telnet.exe)

Posted on 2001-07-31
6
Medium Priority
?
735 Views
Last Modified: 2008-02-01
I think there is a way to start a local application
(ex c:\windows\telnet.exe) from inside a html/javascript page.
How do I do that ?

Regards
Claes Lindvall
0
Comment
Question by:cl071997
  • 3
  • 2
6 Comments
 
LVL 9

Expert Comment

by:nimaig
ID: 6337157
Try this. But works only with IE


<html>
<body>
<script language="javascript">
     var activeXObj=new ActiveXObject("wscript.shell");
     activeXObj.Run("calc.exe");
</script>
<body>
</body>
</html>
0
 

Author Comment

by:cl071997
ID: 6340082
Excellent. I found another way:
<a href=telnet://somewhere.com>telnet to somewhere</a>
One problem with this is you can only run the default
telnet.exe (if you rename wordpad.exe
to telnet.exe you can actually start wordpad from html-tag)

Your sollution looks nice. We are running IE.
One thing - A dialog box appears when I start calc.exe from
activeX. Is there a way to make it disapear for just this
calc.exe ?

Claes
0
 

Author Comment

by:cl071997
ID: 6340089
Yhe dialogbox I was talking about asks for a confimation
- Some software (ActiveX controls) on this page might be unsafe...
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 9

Expert Comment

by:nimaig
ID: 6343421
The dialog box you see is from the Browser security.
0
 

Author Comment

by:cl071997
ID: 6343447
I see. Thanks for your help.

Claes
0
 
LVL 2

Accepted Solution

by:
kevincasey earned 800 total points
ID: 6349228
you could also create a link directly to the executable, given you know what the exact path is:
<a href="file:///C%7C/Program%20Files/Microsoft%20Office/Office/winword.exe">start word</a>

but this won't help you get around the browser security.

kevin
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

886 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