WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

IP Grabber

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Test Network Bandwidth

Keywords: 	  Test Network Bandwidth  IP Grabber Extender

Question:

I would like to use this extender to test network bandwidth, so that I can launch an executable if there is sufficient bandwidth. A response time of 30 ms would be good - anything greater would not launch the executable.

Answer:

Could try the wxPing command in the WInSock extender, then use the wxGetLastErr to get an perhaps better error code.

Sorry, cannot go below 1 second, but you could add your own timing...

AddExtender("wwipg34i.dll")
a=GetTickCount()
ipPing("www.yahoo.com",1)
b=GetTickCount()
diff=(b-a)/1000.0
Message("Ping Time",diff)

Article ID:   W15407
File Created: 2017:07:28:13:58:30
Last Updated: 2003:05:13:11:27:29