In the past, I have used the active X object COMDLG32.ocx to create an easy way for my clients to specify an existing file.
In a new application that I'm creating (trying to...), I need to get a path to a file (indicated by the user) but only the directory. Normally, I could use that Common Dialog object again but this time, I need to get the path in UNC instead of the usual format; so something like "\\MyServer\MyDirectory\MySubDirectory\MyFile. txt"
Anyone has any experience on this?
I'll appreciate any help on this matter!
This works just fine!
I already found some other snips (also based on the WnetGetConnection or on WnetGetUniversalName) but none of them were what I was looking for.
At least your code, I can read and understand!