How to get the network path using OpenFileDialog?

V

VhD50

Hi,
I'm using the OpenFileDialog to let the user pick a file, then I need to get
the file name and file path of the picked file and store it in a database.
My problem comes in when the user picks files from a network folder. Instead
of getting the real file path, i.e. \\servername\sharedfolder, what I get is
the drive letter of the mapped drive. So, instead of having the true path
like '\\servername\sharedfolder\filename.txt', now I get something like
'M:\filename.txt'.
Is there any way I can get the real file path? If possible, please give me
some sample code.
Thanks in advance for your help.
 
S

Sergey Novogilov

Hi,

Our product, Dialog Workshop .NET contains special customized Open/Save
dialogs
which allow to extend the functionality of standard .NET Open/Save dialogs.
Our dialogs allow to get full remote folder path like this:

ftp://[email protected]/yourfolder

Please visit http://www.componentage.com for details.
Also please Dialog Workshop .NET user's manual, "Working with remote
folders" topic.

With Best Regards,
Sergey
 

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

Top