Cynosure.X International LLC

:

Add Comment | Related Links | TrackBack
Related Content

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.

Attached File: IsHostAlive.bat (761 B)

Chieh Cheng
Fri, 18 Dec 2009 23:19:56 +0000

Usage

IsHostAlive.bat host

Chieh Cheng
Fri, 18 Dec 2009 23:20:59 +0000

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.

Attached File: 1 - IsHostAlive.bat (665 B)

Chieh Cheng
Fri, 18 Dec 2009 23:23:48 +0000

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.

Attached File: 2 - IsHostAlive.bat (504 B)

Chieh Cheng
Sat, 04 Dec 2010 09:09:05 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 4 + 1?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

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.

Products | Services
Forums | Latest | RSS
Library | Search | Wiki
Help | Licenses

Login | Register

43 Users Online

Hacking Digital Cameras
Fun for Photographers



Amazon Associate

Copyright © 1996 - 2024. All Rights Reserved.