Solved

execute command line from hyperlink/url

Posted on 2013-05-10
8
506 Views
Last Modified: 2013-06-12
is there any way i can call an application with a parameter from a URL?

the command line is c:\dial.exe 12345
(where 12345 is the phone # to be dialed)

i tried doing it in my browser's address bar but the space is causing a problem.

thank you.
0
Comment
Question by:tabush
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 7

Assisted Solution

by:msifox
msifox earned 334 total points
Comment Utility
Do you want the server to execute a command when the client accesses a special URL, or do you want the client to execute a command when it gets a special reply by the server?

If you problem is just to have a space in an URL, try replacing it with %20
0
 
LVL 2

Author Comment

by:tabush
Comment Utility
i want it that when a user clicks the URL, it executes the command on the user's local PC
0
 
LVL 2

Author Comment

by:tabush
Comment Utility
PS i realize there is some risk in that.. such as a rogue URL calling "format c:", so i assume there is somewhere in Windows that i will have to designate this exe as an "allowed" app for a browser to run... or do i need some type of browser plugin to do it?
0
 
LVL 24

Assisted Solution

by:mankowitz
mankowitz earned 166 total points
Comment Utility
You should definitely NOT be able to do this within a URL. If you could, you could make a web site that runs arbitrary programs on the user's computer.

Some browsers will support the tel anchor, as in
<a href="tel:1-408-555-5555">1-408-555-5555</a>
which might help you.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 7

Accepted Solution

by:
msifox earned 334 total points
Comment Utility
I would write and install a local program, then tell the web browser that files with a certain filename extension or mime-type should always be opened by that program. Probably it would also work with just a cmd-script. The server puts the command to be executed, or the nunber to be dialed, in that file. The browser will save the downloaded file in a temp path with a temp filename. The program will be executed and get the path to that file as if it was typed on the commandline. The program can read the file and so find out what the server wants it to do.
0
 
LVL 14

Expert Comment

by:Giovanni Heward
Comment Utility
Which telephony provider are you using?
0
 
LVL 2

Author Comment

by:tabush
Comment Utility
x66_x72_x65_x65 I'm using NBS - a local provider in the NY/NJ metro area, and they use a broadsoft platform.

All - when I use any of the programs such as dialer, or dial.exe, they tell windows something, and then windows issues a command over the network to the polycom phone using standard TAPI protocols. is there a way to get a link from a browser to just issue these same commands directly? or to call Windows TAPI from a URL? i'm currently looking at a program called HTTPTAPI which might do the trick, it's at http://www.ipcom.at/en/telephony/httptapi/
0
 
LVL 14

Expert Comment

by:Giovanni Heward
Comment Utility
Run a packet trace placing a test call with wireshark and post it here for review.

Another option is writing your own plug-in/extension.  See here and here.  Here's an existing extension which could possibly be manipulated.

Try this using your Polycom's IP address:

curl --digest -u polycom:polycom -d "<PolycomIPPhone><Data priority="Critical">tel:\\1234567890</Data></PolycomIPPhone>" --header "Content-Type: application/x-com-polycom-spipx" http://10.252.75.169/push

Open in new window


Curl: http://curl.haxx.se/download.html
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

763 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

9 Experts available now in Live!

Get 1:1 Help Now