[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Button in HTML to open CMD and ping a certain IP address.

Posted on 2005-05-13
Medium Priority
Last Modified: 2012-06-21
Basically it is like this, I have a page that has information on it that was called from a DB. Part of that info was an IP address. I need to be able to open up CMD.exe using a HTML button and pass the "ping" and the ip address to it.

Any ideas on how to accomplish this?

(I tried posting this to the ASP group with no luck)
Question by:cjinsocal581
LVL 36

Expert Comment

ID: 14000413
Hi cjinsocal581,

Doubtful you can do it with straight HTML and even Javascript.

What you can do is ping using a server-side language like ASP. I do not know ASP, but I know you can use the system() function or backticks in PHP, something like:

`ping [ip address]`

LVL 13

Accepted Solution

softplus earned 2000 total points
ID: 14000434
LVL 32

Expert Comment

ID: 14000448
I think the solution with be to create a server side scripts that pings the ip address. Then the result of that ping could be outputted from that script back to the browser

I'm not familiar with ASP, but in PHP I would probably have created a link like this:

<a href="pingScript.php">Ping server</a>

and the pingScript.php could be like this:




I'm sure that ASP have a similar function.


Author Comment

ID: 14000456
ASP is the way I need to go on this one. Thanks all... You are always the best.
LVL 32

Expert Comment

ID: 14000458
Wow ! So much activitity a friday night - I didn't see the previous post when I started evaluating this Q.


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

834 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