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.