C# code to open a windows directory

  • Thread starter Thread starter Shilpa
  • Start date Start date
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.
 
Shilpa said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top