Wrox Programmer Forums
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 26th, 2006, 04:24 PM
Authorized User
Join Date: Jun 2005
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fetching filenames from a folder

i m using C# ...
How can i fetch all filenames from a given folder path, programatically??

Old January 26th, 2006, 06:29 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Several classes in the System.IO namespace are for file system operations.

You are looking for the System.IO.Directory.GetFiles() method. This will return an array of file names.


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to handle corrupt filenames jwhvng Excel VBA 0 November 2nd, 2006 06:28 PM
Filenames/Database Comparison scubasteve Access 7 July 16th, 2006 02:39 AM
bulk insert files with different filenames fgeorge SQL Server DTS 1 May 25th, 2004 09:03 AM
bulk insert files with different filenames fgeorge SQL Server 2000 1 May 25th, 2004 08:59 AM
Filenames and directories listing into database. wenzation VB.NET 2002/2003 Basics 1 November 14th, 2003 09:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.