<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Redaware Limited - Computer Services &#38; Business IT Solutions in Tenbury Wells, Worcestershire &#187; windows</title>
	<atom:link href="http://www.redaware.net/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redaware.net</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 10:49:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Batch script to test if a server is responding using Ping</title>
		<link>http://www.redaware.net/2010/02/windows-batch-script-to-test-if-a-server-is-responding-using-ping/</link>
		<comments>http://www.redaware.net/2010/02/windows-batch-script-to-test-if-a-server-is-responding-using-ping/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 08:49:07 +0000</pubDate>
		<dc:creator>tsymonds</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[batch program]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.redaware.net/?p=164</guid>
		<description><![CDATA[We were asked by a client to write a simple batch program that tests if a server is alive by using ping. Below is a sample of the script that we created. The client used it in a Formscape project to ensure that a server was available before writting a record to a database using [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>We were asked by a client to write a simple batch program that tests if a server is alive by using ping.</p>
<p>Below is a sample of the script that we created. The client used it in a Formscape project to ensure that a server was available before writting a record to a database using ODBC.</p>
<pre class="brush: plain; title: ; notranslate">
@echo off
CLS
:RETRYPING
echo Testing if 192.168.1.1 host is alive
ping 192.168.1.1 | find &quot;Reply&quot; &gt; nul
if not errorlevel 1 (
echo Host is alive
) else (
echo host is down - retry in 30 Seconds
REM Poor man's sleep function - ping localhost
ping 1.0.0.0 -n 1 -w 30000 &gt;NUL
echo Retry now
GOTO RETRYPING
)
:ENDPING
</pre>
<div class="shr-publisher-164"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.redaware.net/2010/02/windows-batch-script-to-test-if-a-server-is-responding-using-ping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

