<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[DriverPacks.net Forum - Wait for network connection in batch file.]]></title>
	<link rel="self" href="http://forum.driverpacks.net/extern.php?action=feed&amp;tid=3749&amp;type=atom"/>
	<updated>2009-07-06T00:41:58Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.driverpacks.net/viewtopic.php?id=3749</id>
		<entry>
			<title type="html"><![CDATA[Re: Wait for network connection in batch file.]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=32349#p32349"/>
			<content type="html"><![CDATA[<p>Ping will work as long as tcpip is installed... we are taking advantage of the fact that the target is not reachable until the network is live <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2009-07-06T00:41:58Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=32349#p32349</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wait for network connection in batch file.]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=31355#p31355"/>
			<content type="html"><![CDATA[<p>PING 127.0.0.1 works without an active network <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[7yler]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=4650</uri>
			</author>
			<updated>2009-05-14T23:23:44Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=31355#p31355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wait for network connection in batch file.]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=31348#p31348"/>
			<content type="html"><![CDATA[<p>Thanks for the ideas guys, i will look into them when i get some time <img src="http://forum.driverpacks.net/img/smilies/tongue.png" width="15" height="15" alt="tongue" /><br />However i thought the ping thing didn&#039;t work because if there network isnt activated yet, pings don&#039;t get sent. <br />Instead of timeouts it says something like unknown command or something.</p>]]></content>
			<author>
				<name><![CDATA[JustusIV]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=6008</uri>
			</author>
			<updated>2009-05-14T13:30:14Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=31348#p31348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wait for network connection in batch file.]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=31346#p31346"/>
			<content type="html"><![CDATA[<p>Or you could use AutoIT like so...</p><div class="codebox"><pre><code>Local $t, $p
Do
   $p = Ping(&quot;pbmain1&quot;,&quot;3000&quot;) ; or IP address
   $t = $t + 1
Until $p &gt; 0 or $t = 10 ; So do this until it connects or wait 30 seconds of timeouts</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stamandster]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=2760</uri>
			</author>
			<updated>2009-05-14T11:40:47Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=31346#p31346</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wait for network connection in batch file.]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=31325#p31325"/>
			<content type="html"><![CDATA[<p>ping -n 20 IPaddress</p><p>might work nicely... <br />use the built in timeout feature as a delay <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />you could even use a bigger number or longer timeout (-w 9999 is about ten seconds) </p><p>so&nbsp; &quot;start /wait ping -n 20 -w 9999 192.168.1.1&quot; would pause execution and wait up to 200 seconds for the connection to become live.</p><p>once the connection is live the replys will come quickly and the timeout will automaticaly end <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><br /><p>Bashrat is not the only sneaky one <img src="http://forum.driverpacks.net/img/smilies/wink.png" width="15" height="15" alt="wink" /> <img src="http://forum.driverpacks.net/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></content>
			<author>
				<name><![CDATA[OverFlow]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=1097</uri>
			</author>
			<updated>2009-05-14T03:38:32Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=31325#p31325</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wait for network connection in batch file.]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=31314#p31314"/>
			<content type="html"><![CDATA[<p>That&#039;s what I&#039;d do. Sweet and simple <img src="http://forum.driverpacks.net/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[stamandster]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=2760</uri>
			</author>
			<updated>2009-05-13T18:55:07Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=31314#p31314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Wait for network connection in batch file.]]></title>
			<link rel="alternate" href="http://forum.driverpacks.net/viewtopic.php?pid=31313#p31313"/>
			<content type="html"><![CDATA[<p>Hello in my universal image i run things automatically after the image applys however i need the network for some things to work.<br />I currently just use a sleep command to wait about 60 seconds but i was wonder about a better way.</p>]]></content>
			<author>
				<name><![CDATA[JustusIV]]></name>
				<uri>http://forum.driverpacks.net/profile.php?id=6008</uri>
			</author>
			<updated>2009-05-13T18:50:59Z</updated>
			<id>http://forum.driverpacks.net/viewtopic.php?pid=31313#p31313</id>
		</entry>
</feed>
