Solved

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

Posted on 2001-07-31
6
700 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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
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 200 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google Maps API and PHP 25 30
Checkout Page Input Field not aligned 1 22
asp.net mvc5 6 16
Mouse event to control image and transparency. 4 20
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 demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

770 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