sponsored ads

how to get ping command on notepad

sponsored ads

I've been struggling all afternoon to  get ping command on my notepad. Who can give me a hand? Thank you!

Asked Sep, 23 2010
add commentflag 

sponsored ads

answer this question

1 answers

in Windows XP/Vista/7

Start--> Run --> cmd --> ping

Answered Sep, 23 2010
add comment|flag 
vote up 2 vote down
check

CMD because the ping - ing that it performs is not used up at all if you have no Internet Browsers open. Answered Mar, 23 2011
vote up 1 vote down

Hello, please see whether this way can help you:
Start > RUN type in CMD and hit Enter. A "dos"
box will open. type in your ping command and see the results, when finished.
To save the output of the result right click>select all>ctl+c. Open notepad ctl+v. or you can save it to any text editor.
The source:http://forums.techarena.in/windows-software/1384545.htm Answered Apr, 27 2011
vote up 1 vote down

If you are just interested in a simple result, i.e. "is the address accessible?", you can start the ping command using system function, and save the returned value:

int ret = system("ping www.devx.com");
The ret value will be zero if the site is accessible.

Instead of system function, which displays a console window, you can use CreateProcess with specific parameters, in order to execute ping in invisible mode.

If you actually need the textual output of ping command, you can look at Creating a Child Process with Redirected Input and Output (http://windowssdk.msdn.microsoft.com/en-us/ms682499.aspx).

Hope it helps.

Answered Nov, 13 2010
vote up 1 vote down

Your Answer

community wiki:

The Verified Code is to stop spamming. It will be hidden once your reputation reached 100.
or
Create one

Options

sponsored ads

Download related software from AFC

Ping Pong Delay 2.0.8

Last Updated: Mar 16, 2011
License: Freeware
Filesize: 75KB

Continue to downloadPower by Afreecodec.com