Microsoft.com
All DevCenters
MSDN Home
MSDN Archive:
MSDN Archive Home
|
Browse Archive
|
Share Code
|
Help and FAQs
How do I get a list of certain files of one directory (subdirectories included)?
Home
Downloads
Discussions
People
License
Close
RSS
All Resource Updates
Discussions
Releases
Wiki
RSS
Comments
|
Print
|
Page Info
|
Change History (all pages)
Search Wiki:
Home
Resource Page Description
This sample demonstrates how to get a list of certain files of one directory (subdirectories included). The code then walks over the list of retrieved files to extract file information of each file which then gets displayed in a tabular way in a DataGridView.
Additional Resources
You can find a detailed explanation of this code on my blog on
How to get a list of all files of a directory (subdirectories included)?
and on
When using LINQ to XML why don’t I get results if I don’t import a XML namespace?
.
Prerequisites
You need
Visual Basic 2008 Express
or above for this exapmle as I'm utilizing
linq
which got introduced in
.NET Framework 3.5
.
Enjoy!
Daniel
my blog
my code samples
P.S.: Please let me mw know if this code was helpful or not. If not, I’d appreciate if you could tell me what you were expecting. Thanks very much!
Last edited
Sep 15 2009 at 4:37 AM
by
Daniel_Walzenbach
, version 5
Comments
Sign in to add a comment
Current Release
HDI get a list of cert...
Fri Sep 4 2009 at 7:00 AM
More Tags ...
Popular Tags
.NET
.NET 2.0
.NET 3.5
.NET Framework
2008
2009
2010
2011
2012
ADO.NET
ASP.NET
Azure
C#
C++
CRM
Entity Framework
Hotfix
LINQ
LINQ to SQL
March Issue
MCMS
MSDN Magazine
Samples
SharePoint
SharePoint 2010
silverlight
SQL Server
tfs
VB.NET
Visual Basic
Visual Studio
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
VS SDK
VSTO
VSX
WCF
windows 7
Windows Forms
Windows Mobile
WPF
Manage Your Profile
Contact Us
MSDN Flash Newsletter
© 2008 Microsoft Corporation. All rights reserved.
Terms of Use
Trademarks
Privacy Statement
Updating...