<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Supress Responses From Commands In Batch Files</title>
	<atom:link href="http://www.tech-recipes.com/rx/252/supress-responses-from-commands-in-batch-files/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/252/supress-responses-from-commands-in-batch-files/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Sat, 21 Nov 2009 18:18:34 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: X</title>
		<link>http://www.tech-recipes.com/rx/252/supress-responses-from-commands-in-batch-files/comment-page-1/#comment-13318</link>
		<dc:creator>X</dc:creator>
		<pubDate>Thu, 09 Jul 2009 06:53:32 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-13318</guid>
		<description>&lt;script language=&quot;javascript&quot;&gt;window.alert(&#039;Nothing Special&#039;)&lt;/script&gt;</description>
		<content:encoded><![CDATA[<p>&lt;script language=&#8221;javascript&#8221;&gt;window.alert(&#39;Nothing Special&#39;)&lt;/script&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ghanny</title>
		<link>http://www.tech-recipes.com/rx/252/supress-responses-from-commands-in-batch-files/comment-page-1/#comment-12993</link>
		<dc:creator>Ghanny</dc:creator>
		<pubDate>Mon, 29 Jun 2009 15:28:40 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-12993</guid>
		<description>For standard output also try &quot;@echo off&quot; at the start of the batch file. This will suppress echoing all the input commands.</description>
		<content:encoded><![CDATA[<p>For standard output also try &#8220;@echo off&#8221; at the start of the batch file. This will suppress echoing all the input commands.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: timlarsen</title>
		<link>http://www.tech-recipes.com/rx/252/supress-responses-from-commands-in-batch-files/comment-page-1/#comment-1054</link>
		<dc:creator>timlarsen</dc:creator>
		<pubDate>Fri, 19 Nov 2004 07:54:50 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-1054</guid>
		<description>The actual syntax (at least on Win2K) is 

dir badfile.txt &gt; null 2&gt;&lt;strong&gt;&amp;&lt;/strong&gt;1

Note the position of the ampersand.</description>
		<content:encoded><![CDATA[<p>The actual syntax (at least on Win2K) is </p>
<p>dir badfile.txt &gt; null 2&gt;<strong>&amp;</strong>1</p>
<p>Note the position of the ampersand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qmchenry</title>
		<link>http://www.tech-recipes.com/rx/252/supress-responses-from-commands-in-batch-files/comment-page-1/#comment-87</link>
		<dc:creator>qmchenry</dc:creator>
		<pubDate>Thu, 05 Feb 2004 19:50:02 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-87</guid>
		<description>Greg,

That is a fantastic piece of knowledge.  I&#039;ve been redirecting stderr that way in unix for many years, but I&#039;ve never tried it in dos.  I wouldn&#039;t have thought to try.  I also didn&#039;t know there was an eqivalent to /dev/null in dos.  Great stuff!

Quinn</description>
		<content:encoded><![CDATA[<p>Greg,</p>
<p>That is a fantastic piece of knowledge.  I&#8217;ve been redirecting stderr that way in unix for many years, but I&#8217;ve never tried it in dos.  I wouldn&#8217;t have thought to try.  I also didn&#8217;t know there was an eqivalent to /dev/null in dos.  Great stuff!</p>
<p>Quinn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gmartin</title>
		<link>http://www.tech-recipes.com/rx/252/supress-responses-from-commands-in-batch-files/comment-page-1/#comment-86</link>
		<dc:creator>gmartin</dc:creator>
		<pubDate>Thu, 05 Feb 2004 19:36:41 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-86</guid>
		<description>This tip is good but it only goes so far.  It will redirect STDOUT to null.  Errors will still be displayed.  As an example, run &lt;strong&gt;dir badfile.txt &gt;nul &lt;/strong&gt;and you will still see &quot;File not found&quot; displayed.  That&#039;s because errors are written to STDERR

To redirect STDERR to nul as well, try this:

&lt;strong&gt;dir badfile.txt &gt; nul 2&amp;&gt;1&lt;/strong&gt;

Of course you may want to see the errors.  So a better tack to take could be to write to a log file

&lt;strong&gt;dir badfile.txt &gt;log.txt 2&amp;&gt;1&lt;/strong&gt;

\Greg</description>
		<content:encoded><![CDATA[<p>This tip is good but it only goes so far.  It will redirect STDOUT to null.  Errors will still be displayed.  As an example, run <strong>dir badfile.txt &gt;nul </strong>and you will still see &#8220;File not found&#8221; displayed.  That&#8217;s because errors are written to STDERR</p>
<p>To redirect STDERR to nul as well, try this:</p>
<p><strong>dir badfile.txt &gt; nul 2&amp;&gt;1</strong></p>
<p>Of course you may want to see the errors.  So a better tack to take could be to write to a log file</p>
<p><strong>dir badfile.txt &gt;log.txt 2&amp;&gt;1</strong></p>
<p>\Greg</p>
]]></content:encoded>
	</item>
</channel>
</rss>
