ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

wanted: CLI tool to determine if Internet access yes/no

(1/2) > >>

brotherS:
Hi,

I really could use such a small .exe, that maybe would just ping www.google.com and return the state so that I could use it in AutoHotkey. You know of anything?

jgpaiva:
I'm not sure, but i think this has already been done (not sure, but i think by me). Please check on coding snacks.

brotherS:
I did a forum search (and just now another one) but didn't find anything...   :( Do you remember any key words?

jgpaiva:
Ok, now i remember i couldn't quite do this, but got some solutions (i think).
(btw: if you just want to know if the internet access is on or off on ahk, you could use the URLDownloadToFile command, and check what was it's errorlevel. In case the page couldn't be downloaded, the errorlevel will be different from 0.)

Here's the other thread i mentioned: http://www.donationcoder.com/forum/index.php?topic=2999.0

brotherS:
(btw: if you just want to know if the internet access is on or off on ahk, you could use the URLDownloadToFile command, and check what was it's errorlevel. In case the page couldn't be downloaded, the errorlevel will be different from 0.)
-jgpaiva (April 25, 2006, 01:47 PM)
--- End quote ---
Right, just trying to download http://www.google.com/index.html should work!  :up:

Navigation

[0] Message Index

[#] Next page

Go to full version