Archive: How do I ping?


How do I ping?
How do I ping a server (either the IP or just the web address) and return how long the ping took?


You can run ping.exe using nsExec or ExecDos and to parse output.)

ExecDos::exec 'ping.exe -n 1 nsis.sourceforge.net' '' 'stdout.log'
Pop $0 ; return value process exit
Another way is to write a plug-in, attached C (nsi extension used because of the upload limitations, just rename) code I used long, long ago (Win9x compatible).

Thanx Tahkir, you saved my life!