<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx</link><description>Tree walking and other fancy stuff.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10337704</link><pubDate>Wed, 08 Aug 2012 01:24:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10337704</guid><dc:creator>Luca</dc:creator><description>&lt;p&gt;@Adam Rosenfield&lt;/p&gt;
&lt;p&gt;foghting with this in the last few days&lt;/p&gt;
&lt;p&gt;forfiles /d -30 /c &amp;quot;cmd /c set test=1&amp;quot;&lt;/p&gt;
&lt;p&gt;may you help me with this please?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10337704" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10337444</link><pubDate>Tue, 07 Aug 2012 09:02:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10337444</guid><dc:creator>Cthu</dc:creator><description>&lt;p&gt;&amp;quot;Who the heck wants to operate on files modified in the future? Except perhaps the Microsoft Research folks who are working on that time machine.&amp;quot;&lt;/p&gt;
&lt;p&gt;Cue a flood of people taking that statement seriously and bothering Microsoft support for information about the secret time machine project...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10337444" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10336997</link><pubDate>Sun, 05 Aug 2012 17:42:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10336997</guid><dc:creator>Crescens2k</dc:creator><description>&lt;p&gt;@Legolas&lt;/p&gt;
&lt;p&gt;This is why I often browse through System32 on a new version of Windows to see the additions/changes. I knew about these and a few more because they are in the System32 directory. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10336997" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10336983</link><pubDate>Sun, 05 Aug 2012 14:51:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10336983</guid><dc:creator>Legolas</dc:creator><description>&lt;p&gt;Thanks for this series! I only read the last one and I learned something already. It&amp;#39;s a real pity this command isn&amp;#39;t more obviously available. Any idea where I could&amp;#39;ve learned about it without knowing it exists? I&amp;#39;ve looked at the output of &amp;#39;help&amp;#39; in the command line, but it isn&amp;#39;t there. Is there something like help advanced or so, with all the advanced stuff in it?&lt;/p&gt;
&lt;div class="post"&gt;[&lt;i&gt;It&amp;#39;s not listed in &lt;code&gt;HELP&lt;/code&gt; because the command was added later, and the people who added it didn&amp;#39;t ask the CMD folks &amp;quot;Hey, could you add this to HELP?&amp;quot; There are lots of commands not included in the &lt;code&gt;HELP&lt;/code&gt; list, like &lt;code&gt;WHERE&lt;/code&gt; and &lt;code&gt;PowerShell&lt;/code&gt;. -Raymond&lt;/i&gt;]&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10336983" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10336903</link><pubDate>Sat, 04 Aug 2012 22:43:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10336903</guid><dc:creator>Mark</dc:creator><description>&lt;p&gt;Raymond, do you secretly like batch files? &amp;nbsp;(Of course, if it&amp;#39;s a secret, you won&amp;#39;t admit it, making this a silly question, but I had to ask.)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10336903" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10336853</link><pubDate>Sat, 04 Aug 2012 10:26:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10336853</guid><dc:creator>Neil</dc:creator><description>&lt;p&gt;FOR (and FOR /R) won&amp;#39;t work with hidden files, and I couldn&amp;#39;t work out how to get FOR ... (&amp;#39;DIR/S/A&amp;#39;) to work with Unicode file names (yes I tried CMD /U), so FORFILES turned out to be really useful in that case.&lt;/p&gt;
&lt;p&gt;For completeness, as someone pointed out in a previous post&amp;#39;s comment, tokens=* doesn&amp;#39;t work, you need to use delims= to properly handle file names including spaces.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10336853" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10336840</link><pubDate>Sat, 04 Aug 2012 08:58:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10336840</guid><dc:creator>Karellen</dc:creator><description>&lt;p&gt;Hey, when I posted that comment, the last comment was Ben L&amp;#39;s. What gives?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10336840" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10336839</link><pubDate>Sat, 04 Aug 2012 08:56:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10336839</guid><dc:creator>Karellen</dc:creator><description>&lt;p&gt;Does anyone know how old &amp;quot;forfiles&amp;quot; is? On the MSDN pages I can&amp;#39;t find any mention of the earliest verison of Windows (or DOS?) that it was shipped with. It says &amp;quot;Applies To: Windows Server 2008, Windows Vista&amp;quot;, but it says the same thing about &amp;quot;cd&amp;quot;, which definitely shipped with earlier versions than that! :-)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10336839" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10336772</link><pubDate>Fri, 03 Aug 2012 22:39:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10336772</guid><dc:creator>anonymous</dc:creator><description>&lt;p&gt;It does not show up in the list of commands whey you type &amp;quot;HELP&amp;quot;. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;In MSDN it is documented as Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2&lt;/p&gt;
&lt;p&gt;so probably won&amp;#39;t work for @xpclient&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10336772" width="1" height="1"&gt;</description></item><item><title>re: FORFILES, for your fancier batch file enumeration needs</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2012/08/03/10334560.aspx#10336752</link><pubDate>Fri, 03 Aug 2012 20:55:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10336752</guid><dc:creator>Andrew from Vancouver</dc:creator><description>&lt;p&gt;This is a great series Raymond, I hope you see fit to continue it! I&amp;#39;m a Windows batch file veteran and I still learned a thing or two.&lt;/p&gt;
&lt;p&gt;By the way, the forfiles.exe is included in Vista/7/2K8 but for W2K3 and earlier it was in the Resource Kit. The W2K3 version runs fine on WXP. But you need the W2K version on W2K.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10336752" width="1" height="1"&gt;</description></item></channel></rss>