Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   How do I ping? (http://forums.winamp.com/showthread.php?t=243813)

BioDuo 18th April 2006 10:05

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?

Takhir 18th April 2006 10:40

1 Attachment(s)
You can run ping.exe using nsExec or ExecDos and to parse output.)
code:
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).

BioDuo 18th April 2006 11:50

Thanx Tahkir, you saved my life!


All times are GMT. The time now is 17:56.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.