Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2001-07-31
6
Medium Priority
?
724 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

 
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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

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

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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…

670 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