Solved

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

Posted on 2001-07-31
6
694 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
Comment Utility
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
Comment Utility
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
Comment Utility
Yhe dialogbox I was talking about asks for a confimation
- Some software (ActiveX controls) on this page might be unsafe...
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 9

Expert Comment

by:nimaig
Comment Utility
The dialog box you see is from the Browser security.
0
 

Author Comment

by:cl071997
Comment Utility
I see. Thanks for your help.

Claes
0
 
LVL 2

Accepted Solution

by:
kevincasey earned 200 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now