I am writing an app that allows users to create shares on a machine. The folder dialog box opens, the user creates a folder and my code creates a share on that folder path.

The problem is that sometimes the user will not create a folder using the dialog box but will choose an existing one instead. I need to somehow identify if this chosen folder is already a share or not.

Any Ideas ?

Thanks In Advance