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.
 
Back
Top