|
-
Apr 18th, 2003, 11:23 AM
#1
Thread Starter
Hyperactive Member
Get a UNC path from a local Share?
I'm trying to determine the UNC PATH of a shared folder
which could be on a user's local machine OR is could be a mapped drive.
For example, on my pc named "MYPC", if I share a folder called "Junk", the correct UNC path would be "\\MYPC\Junk".
Also, if I map a different machine's drive/folder, I would expect the same kind of returned path.
For example, I map drive F: to a different machine named "THEIR_PC" and select a folder "their_folder".
The UNC Path would be "\\THEIR_PC\their_folder".
I'd like to be able to take a path from a CommonDialogBox and 'convert' it to the UNC path.
For example, the user opens the commondialog, and selects the local shared folder "C:\test_folder" on their machine "THEIR_PC"
I then convert "C:\test_folder" to: "\\THEIR_PC\test_folder"
Example 2:
The user opens the commondialog, and selects the mapped folder
"F:\sample" on a different machine named "ANOTHERPC"
I convert "F:\sample" to: "\\ANOTHERPC\sample".
(Did I beat the horse enough?)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|