Old 18th April 2006, 10:05   #1
BioDuo
Junior Member
 
Join Date: Jun 2005
Posts: 21
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?
BioDuo is offline   Reply With Quote
Old 18th April 2006, 10:40   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
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).
Attached Files
File Type: nsi vpping.nsi (2.1 KB, 347 views)
Takhir is offline   Reply With Quote
Old 18th April 2006, 11:50   #3
BioDuo
Junior Member
 
Join Date: Jun 2005
Posts: 21
Thanx Tahkir, you saved my life!
BioDuo is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump