?
Solved

Pinging a host

Posted on 2003-10-22
4
Medium Priority
?
483 Views
Last Modified: 2013-12-26
I want to know how can we ping a host and get back the feed back that it was sucessful. as we can do this by just using the ping command in dos prompt, but i want to use its equilavant in powerbuilder.

if you have any function or api function just let me know or how can we do it.

thanks in advance
0
Comment
Question by:gajender_99
[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
4 Comments
 
LVL 15

Expert Comment

by:namasi_navaretnam
ID: 9598080
RUN(" ping localhost > c:\test.txt " )

Sleep(5000) // wait for 5 seconds

Read c:\test.txt using FileOpen, FileRead, FileClose functions.

Instad of RUN you can use ShellExecuteA API

Function long ShellExecuteA( long hWindow, string Operation, string File, string Parameters, string Directory, long Visible) Library 'shell32'

HTH,

Namasi Navaretnam
0
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 250 total points
ID: 9598394
hi,

i have sample application for ping if u want source code give your email id so that i can mail you pbl.

-sandeep.
0
 
LVL 5

Expert Comment

by:buasuwan
ID: 9598742
0
 
LVL 8

Author Comment

by:gajender_99
ID: 9607602
Hi Sandeep

my E-mail address is gajender_99@hotmail.com
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

765 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