I have a feature in an application that I created that is triggered when the user clicks in a text box. Once it has the focus a dialog box appears in which they go to the location of the file that they want. Once the file is selected a link is created for the file.
The problem is that different computers have different letters representing the network drive where the images are. So if everyones drive letters are different and they create a link to a file others can't access it.
Does anyone know of a way to retrieve the UNCPath of a networked drive? I've copied code from microsoft but it doesn't work. It uses the MPR.dll file but somethings up with it. Any suggestions would be greatly appreciated.
P.S. Sorry for the long thread
IT Professional
The problem is that different computers have different letters representing the network drive where the images are. So if everyones drive letters are different and they create a link to a file others can't access it.
Does anyone know of a way to retrieve the UNCPath of a networked drive? I've copied code from microsoft but it doesn't work. It uses the MPR.dll file but somethings up with it. Any suggestions would be greatly appreciated.
P.S. Sorry for the long thread
IT Professional