By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,009 Members | 1,643 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,009 IT Pros & Developers. It's quick & easy.

C# code to open a windows directory

P: n/a
Hi All,

I need the C# code to open a windows directory.

Regards,
Shilpa

Mar 22 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Shilpa wrote:
Hi All,

I need the C# code to open a windows directory.

Regards,
Shilpa


You can iterate through all the files in a Directory.

Check out the DirectoryInfo class.

Mar 22 '06 #2

P: n/a
Hi Shilpa,

The question arises : What do you intend to do with the "opened"
directory ? What do you intend to do with the files within the
directory ?

Since that information is not available :

1. Use the Directory class which has static members.
OR
2. Use the DirectoryInfo class which has instance members.

Regards,

Cerebrus.

Mar 22 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.