<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; CMD/BAT: Сравнить вывод с нулем]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5889&amp;type=atom" />
	<updated>2011-06-21T09:26:30Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5889</id>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Сравнить вывод с нулем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49271#p49271" />
			<content type="html"><![CDATA[<p>А чем так плохо ?<br /></p><div class="codebox"><pre><code>net view /network:nw \\nwserver | find /i /c &quot;\\nwserver\&quot; | find &quot;0&quot; &amp;&amp; (
   echo Попали
) || (
   echo Не попали
)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[smaharbA]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=2911</uri>
			</author>
			<updated>2011-06-21T09:26:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49271#p49271</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Сравнить вывод с нулем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49046#p49046" />
			<content type="html"><![CDATA[<p>Супер! )))</p><p>Логически верный if<br /></p><div class="codebox"><pre><code>net view /network:nw \\nwserver | find /i /c &quot;\\nwserver\&quot; | find &quot;0&quot;
if errorlevel 1 (
    rem доступен
) else (
    rem не найден
)</code></pre></div><p>Спасибо! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Cyberstream]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24918</uri>
			</author>
			<updated>2011-06-08T08:40:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49046#p49046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CMD/BAT: Сравнить вывод с нулем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49044#p49044" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
net view /network:nw \\nwserver | find /i /c &quot;\\nwserver\&quot; | find &quot;0&quot;
if errorlevel 1 (
    rem нет сервера
) else (
    rem стартовал старенький сервер netware 3
)</code></pre></div><p>Объяснения требуются?</p>]]></content>
			<author>
				<name><![CDATA[Rumata]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24846</uri>
			</author>
			<updated>2011-06-08T07:57:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49044#p49044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[CMD/BAT: Сравнить вывод с нулем]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=49042#p49042" />
			<content type="html"><![CDATA[<p>Здравствуйте <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Вопрос на почве незнания рациональных путей, отсутствия опыта и &quot;чувства языка&quot; : (</p><p>Если пользователь заходит в систему раньше, чем стартовал старенький сервер netware 3, сетевые диски у него отключены.<br />Пишу батник, перемонтирующий сетевые диски, если доступен netware, доступность которого и целесообразность перемонтирования проверяю сравнением с нулем количества доступных ресурсов сервера.</p><p>Можно ли/как обыкновенным if, без ухищрений вывода в файл и проч, сравнить с нулем то, что выводит <br /></p><div class="codebox"><pre><code>net view /network:nw \\nwserver | find /i /c &quot;\\nwserver\&quot;</code></pre></div><p>?</p>]]></content>
			<author>
				<name><![CDATA[Cyberstream]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24918</uri>
			</author>
			<updated>2011-06-08T07:47:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=49042#p49042</id>
		</entry>
</feed>
