Solved

execute command line from hyperlink/url

Posted on 2013-05-10
8
520 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
ID: 39156822
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
ID: 39156829
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
ID: 39156836
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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
LVL 24

Assisted Solution

by:mankowitz
mankowitz earned 166 total points
ID: 39156843
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
 
LVL 7

Accepted Solution

by:
msifox earned 334 total points
ID: 39156867
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 15

Expert Comment

by:Giovanni Heward
ID: 39157068
Which telephony provider are you using?
0
 
LVL 2

Author Comment

by:tabush
ID: 39158939
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 15

Expert Comment

by:Giovanni Heward
ID: 39159050
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where to download python requests library 6 67
Website Question - New Site 3 34
Saving Web Page as PDF 9 47
Ways to Manage 2 Development Projects on Same Section 1 20
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 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