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
in Windows XP/Vista/7
Start--> Run --> cmd --> pingAnswered Sep, 23 2010
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.
Search for Related Topics
ping command qtp huawei ping command zt 180 ping command hon command decrease ping ping command tutorial pdf dota 2 reduce ping commands ping command reliance netconnect copy ping command notepad ixia send ping command ping command run powerbuilder.0 write program ping command notepad ping command saving notepad
Related Unresolved Questions