 




<?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: DOS Script Help</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/dos-script-help/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/dos-script-help/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 05:16:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: jutpro</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dos-script-help/#comment-82080</link>
		<dc:creator>jutpro</dc:creator>
		<pubDate>Mon, 04 Oct 2010 12:54:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-82080</guid>
		<description><![CDATA[Carlosdl, your are so right. I did a copy and paste as you suggested and it worked perfectly.

I had no idea that putting the 2 commands on the same line would make such a difference in how  the logic works.
Thank you so much for all your help and for  taking the time to figure this out for me.
Have a great week.]]></description>
		<content:encoded><![CDATA[<p>Carlosdl, your are so right. I did a copy and paste as you suggested and it worked perfectly.</p>
<p>I had no idea that putting the 2 commands on the same line would make such a difference in how  the logic works.<br />
Thank you so much for all your help and for  taking the time to figure this out for me.<br />
Have a great week.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dos-script-help/#comment-82052</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 01 Oct 2010 20:40:53 +0000</pubDate>
		<guid isPermaLink="false">#comment-82052</guid>
		<description><![CDATA[Hmmm.  I tested it before posting.

Something as simple as writing two commands on the same line could be causing the problem.

Try copy-pasting it.  If that doesn&#039;t work, post your new version here.]]></description>
		<content:encoded><![CDATA[<p>Hmmm.  I tested it before posting.</p>
<p>Something as simple as writing two commands on the same line could be causing the problem.</p>
<p>Try copy-pasting it.  If that doesn&#8217;t work, post your new version here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jutpro</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dos-script-help/#comment-82050</link>
		<dc:creator>jutpro</dc:creator>
		<pubDate>Fri, 01 Oct 2010 20:25:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-82050</guid>
		<description><![CDATA[Thank you Carlosdl for you quick response.

I ran a test with your changes and the correct message is displayed when the files are greater than 0 bytes. However, when I test it with files with 0 bytes I get an error message that states &quot;echo was unexpected at this time.&quot;

I tried fixing the below statement but still no luck.

for %%f in (*.*) do ( if %%~zf lss 1 ( set emptyFiles=1  echo %%f]]></description>
		<content:encoded><![CDATA[<p>Thank you Carlosdl for you quick response.</p>
<p>I ran a test with your changes and the correct message is displayed when the files are greater than 0 bytes. However, when I test it with files with 0 bytes I get an error message that states &#8220;echo was unexpected at this time.&#8221;</p>
<p>I tried fixing the below statement but still no luck.</p>
<p>for %%f in (*.*) do ( if %%~zf lss 1 ( set emptyFiles=1  echo %%f</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jutpro</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dos-script-help/#comment-82043</link>
		<dc:creator>jutpro</dc:creator>
		<pubDate>Fri, 01 Oct 2010 18:44:52 +0000</pubDate>
		<guid isPermaLink="false">#comment-82043</guid>
		<description><![CDATA[It appears only a portion of my question is being displayed. Here is the rest of my question along with the batch file I need to improve:

I need this batch file to do an additional task; If files are in the folder and all are greater 
than zero bytes I would like to echo a message, “No Empty Files found”.
Everything I have tried have not worked. Any help will be greatly appreciated.

@ECHO OFF
CD C:temp
if exist *.* goto CHKFILELEN
if not exist *.* goto MESSAGE

:CHKFILELEN
for %%f in (*.*) do (if %%~zf lss 1 echo %%f)
goto END

:MESSAGE
echo &quot;No Files in folder&quot;
goto END

:END]]></description>
		<content:encoded><![CDATA[<p>It appears only a portion of my question is being displayed. Here is the rest of my question along with the batch file I need to improve:</p>
<p>I need this batch file to do an additional task; If files are in the folder and all are greater<br />
than zero bytes I would like to echo a message, “No Empty Files found”.<br />
Everything I have tried have not worked. Any help will be greatly appreciated.</p>
<p>@ECHO OFF<br />
CD C:temp<br />
if exist *.* goto CHKFILELEN<br />
if not exist *.* goto MESSAGE</p>
<p>:CHKFILELEN<br />
for %%f in (*.*) do (if %%~zf lss 1 echo %%f)<br />
goto END</p>
<p>:MESSAGE<br />
echo &#8220;No Files in folder&#8221;<br />
goto END</p>
<p>:END</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/dos-script-help/#comment-82042</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 01 Oct 2010 18:43:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-82042</guid>
		<description><![CDATA[The actual script didn&#039;t get posted.]]></description>
		<content:encoded><![CDATA[<p>The actual script didn&#8217;t get posted.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.024 seconds using memcached
Object Caching 323/329 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 07:15:41 -->