I am using vb.net with visual studio 2008. I have the need to have a user select a directory on a network drive to bring up a folder with a very extensive list of files. The file names within this directory are what I'm concerned with and I will need to write all these file names to a textfile in order to do a comparison with an existing text file. The user must be able to select this folder themselves.

At this point I am trying to use the openfiledialog box to open the folder however it is requiring that I select a specific file which is not my need. I need the whole folder.
I currently have a filter that is allowing all files.

fdlg.Filter = "All files (*.*)|*.*|All files (*.*)|*.*

I assume that there is another way to do this but I am currently unaware of that way.

Any suggestions would be greatly appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.