<?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>How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx</link><description>I needed to create a list of all Code Snippets we ship in Visual Studio the other day containing their title, description and path on disc and size. As you might know, Code Snippets are stored in multiple directories below "%ProgramFiles%\Microsoft Visual</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9790830</link><pubDate>Fri, 19 Jun 2009 20:16:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9790830</guid><dc:creator>Oleksandr</dc:creator><description>&lt;p&gt;There is an example of how to get registered code snippets at &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/bb165947"&gt;http://msdn.microsoft.com/en-us/library/bb165947&lt;/a&gt;(VS.80).aspx. Isn't it working in VS10?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9790830" width="1" height="1"&gt;</description></item><item><title>re: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9603061</link><pubDate>Mon, 11 May 2009 17:50:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9603061</guid><dc:creator>Kevin Gallagher (Oregon Department of Revenue)</dc:creator><description>&lt;p&gt;Thanks for the explaination on why the import statement was needed. Also thanks for the code in general!!!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9603061" width="1" height="1"&gt;</description></item><item><title>re: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9588233</link><pubDate>Tue, 05 May 2009 14:08:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9588233</guid><dc:creator>Bhavana</dc:creator><description>&lt;p&gt;I have multiple text logs (100) in one folder. &lt;/p&gt;
&lt;p&gt;I am looking for code to copy individual txt log contents to copy &amp;amp; paste in a &amp;nbsp;different sheets of a workbook. &lt;/p&gt;
&lt;p&gt;Can canyone help me ? &lt;/p&gt;
&lt;p&gt;Bhavana&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9588233" width="1" height="1"&gt;</description></item><item><title>re: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9577494</link><pubDate>Thu, 30 Apr 2009 03:36:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9577494</guid><dc:creator>VBTeam</dc:creator><description>&lt;p&gt;Kevin,&lt;/p&gt;
&lt;p&gt;sorry for the confusion! I missed to include this line in the code example. I just posted the answer to your question here:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/vbteam/archive/2009/04/29/when-using-linq-to-xml-why-don-t-i-get-results-if-i-don-t-import-a-xml-namespace-daniel-walzenbach.aspx"&gt;http://blogs.msdn.com/vbteam/archive/2009/04/29/when-using-linq-to-xml-why-don-t-i-get-results-if-i-don-t-import-a-xml-namespace-daniel-walzenbach.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Let me know if this helps!&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Daniel&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9577494" width="1" height="1"&gt;</description></item><item><title>When using LINQ to XML why don’t I get results if I don’t import a XML namespace (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9577474</link><pubDate>Thu, 30 Apr 2009 03:33:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9577474</guid><dc:creator>The Visual Basic Team</dc:creator><description>&lt;p&gt;Hi, I posted a bit of code the other day which I used to get a list of all Code Snippets we ship in Visual&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9577474" width="1" height="1"&gt;</description></item><item><title>re: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9573588</link><pubDate>Tue, 28 Apr 2009 16:56:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9573588</guid><dc:creator>Kevin Gallagher (Oregon Department of Revenue)</dc:creator><description>&lt;p&gt;I had to add&lt;/p&gt;
&lt;p&gt;Imports &amp;lt;xmlns=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet&amp;quot;&amp;gt;"&gt;http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet&amp;quot;&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;to read the snippets, why is that?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9573588" width="1" height="1"&gt;</description></item><item><title>re: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9567719</link><pubDate>Sat, 25 Apr 2009 06:03:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9567719</guid><dc:creator>Jonathan Baker</dc:creator><description>&lt;p&gt;Why couldn't you include the dir c:\*.* /s and &amp;gt; to a file?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9567719" width="1" height="1"&gt;</description></item><item><title>re: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9566219</link><pubDate>Fri, 24 Apr 2009 10:19:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9566219</guid><dc:creator>Jem</dc:creator><description>&lt;p&gt;Getting the *.snippet filter into the GetFiles call should improve greatly the performance (or at least I hope).&lt;/p&gt;
&lt;p&gt;Of course then, it would make this exemple even more a poor use of Linq. Because, what's the big advantage of Linquing this code against a simple: &lt;/p&gt;
&lt;p&gt;Dim files = My.Computer.FileSystem.GetFiles(txtPath.Text, FileIO.SearchOption.SearchAllSubDirectories, &amp;quot;*.snippet&amp;quot;)&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;&amp;quot;It gets sorted&amp;quot;, you might answer, yeah but it pretty much is already sorted out of the box, and you're not using the fact that filenames are sorted anyway.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9566219" width="1" height="1"&gt;</description></item><item><title>re: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9566117</link><pubDate>Fri, 24 Apr 2009 08:44:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9566117</guid><dc:creator>zzz</dc:creator><description>&lt;p&gt;that's not very robust or performant. ms should obsolete GetFiles(..., FileIO.SearchOption.SearchAllSubDirectories)&lt;/p&gt;
&lt;p&gt;and give us a proper class that takes advantage of knowledge of the filesystem, the storage hardware and multiple cores and gives simple options to handle links and loops, networks, system directiories. so plinq support and lazy eval. it should also provide access to filesystem inside disk images.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9566117" width="1" height="1"&gt;</description></item><item><title>How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)? | Microsoft Share Point</title><link>http://blogs.msdn.com/b/vbteam/archive/2009/04/23/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach.aspx#9565359</link><pubDate>Thu, 23 Apr 2009 22:53:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9565359</guid><dc:creator>How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)? | Microsoft Share Point</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://microsoft-sharepoint.simplynetdev.com/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach/"&gt;http://microsoft-sharepoint.simplynetdev.com/how-to-get-a-list-of-all-files-of-a-directory-subdirectories-included-daniel-walzenbach/&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9565359" width="1" height="1"&gt;</description></item></channel></rss>