Is Host Alive (GPL)
This "IsHostAlive.bat" is a Windows batch program that determines whether a host computer or network device is alive. It does the check by sending a ping to the device. When the device responds, the device is considered as alive. When the device has been determine to be alive, this script outputs an '1'. Otherwise, this script outputs a '0'.
Because this script uses the ping command to determine whether a host is on, it usually returns a result immediately when the host responds. However, if the host is off, it could take up to a second before this script times out and return false.
"IsHostAlive.bat" takes advantage of the SetNumberOfArguments.bat (GPL) script and the SetVariableToOutput.bat (GPL) script that are available on this web site. So to use "IsHostAlive.bat", you'll have to download these other batch files, if you don't already have them.
"IsHostAlive.bat" is distributed as executable source code under the GNU General Public License. Please see the license agreement elsewhere on this site.
The original "IsHostAlive.bat" script was written on the Windows XP computer. After testing the script on Windows 7, I found that it no longer works. Windows 7 had changed the format of the ping output.
I have updated the "IsHostAlive.bat" script to work with both the old ping output and the new ping output. The new version attached below should work on most, if not all, of the Windows operating systems.
I eliminated extra code in the following version. The string comparison has also been made to be more robust to work on a variety of Windows versions.
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
28 Users Online
Copyright © 1996 - 2021. All Rights Reserved.