Click here to Skip to main content
15,905,566 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDynamic tooltip Pin
cstrader23221-Oct-08 4:53
cstrader23221-Oct-08 4:53 
AnswerRe: Dynamic tooltip Pin
dan!sh 21-Oct-08 5:02
professional dan!sh 21-Oct-08 5:02 
AnswerRe: Dynamic tooltip Pin
cstrader23221-Oct-08 5:15
cstrader23221-Oct-08 5:15 
AnswerRe: Dynamic tooltip Pin
Dave Kreskowiak21-Oct-08 5:50
mveDave Kreskowiak21-Oct-08 5:50 
GeneralRe: Dynamic tooltip Pin
cstrader23221-Oct-08 6:19
cstrader23221-Oct-08 6:19 
AnswerRe: Dynamic tooltip Pin
Vengatachalapathy Palanivel21-Oct-08 22:05
Vengatachalapathy Palanivel21-Oct-08 22:05 
GeneralRe: Dynamic tooltip Pin
Dave Kreskowiak22-Oct-08 4:14
mveDave Kreskowiak22-Oct-08 4:14 
QuestionConverting full path to URI Pin
egottwald21-Oct-08 4:35
egottwald21-Oct-08 4:35 
I'm writing a little app to save the clipboard to a file and then mail a link to it to selected recipients. For the saved file to be accessible by the recipients, I verify that the parent folder is shared.

However, if the share is on a local drive, I have to convert the full path to something like:

DriveID:\SomePath1\SharedFolderName\SomePath2\FileName.ext

and then to:

\\HostDNSname\ShareName\SomePath2\FileName.ext

where ShareName is the provider name for:

DriveID:\SomePath1\SharedFolderName

and SharedFolderName is the 'deepest' level share - i.e., it accounts for the possibility of SomePath1 including higher level shared folders.

I'm using the Win32_LogicalDisk ManagementClass and Win32_Share ManagementClass to obtain the info I need, but have not found an easy way to do the path conversion.

Before I dig into the implementation, I thought I'd check to see whether anyone has attempted this and whether they found an easy way to do this.

Comments would be appreciated...

emilG

"Dealing with failure is easy: Work hard to improve.
Success is also easy to handle: You've solved the wrong
problem. Work hard to improve." - Alan Perlis


AnswerRe: Converting full path to URI Pin
Dave Kreskowiak21-Oct-08 13:36
mveDave Kreskowiak21-Oct-08 13:36 
GeneralRe: Converting full path to URI Pin
egottwald22-Oct-08 4:34
egottwald22-Oct-08 4:34 
GeneralRe: Converting full path to URI Pin
Jon_Boy22-Oct-08 6:26
Jon_Boy22-Oct-08 6:26 
GeneralRe: Converting full path to URI Pin
egottwald22-Oct-08 6:48
egottwald22-Oct-08 6:48 
GeneralRe: Converting full path to URI Pin
Dave Kreskowiak22-Oct-08 11:05
mveDave Kreskowiak22-Oct-08 11:05 
QuestionQuestion on how interop files are generated. Pin
Jon_Boy21-Oct-08 3:58
Jon_Boy21-Oct-08 3:58 
AnswerRe: Question on how interop files are generated. Pin
Dave Kreskowiak21-Oct-08 4:14
mveDave Kreskowiak21-Oct-08 4:14 
GeneralRe: Question on how interop files are generated. [modified] Pin
Jon_Boy21-Oct-08 4:24
Jon_Boy21-Oct-08 4:24 
GeneralRe: Question on how interop files are generated. Pin
Dave Kreskowiak21-Oct-08 5:41
mveDave Kreskowiak21-Oct-08 5:41 
GeneralRe: Question on how interop files are generated. Pin
Jon_Boy21-Oct-08 6:17
Jon_Boy21-Oct-08 6:17 
Questionreally suck reading xmls Pin
ls780h21-Oct-08 3:10
ls780h21-Oct-08 3:10 
AnswerRe: really suck reading xmls Pin
Tom Deketelaere21-Oct-08 3:22
professionalTom Deketelaere21-Oct-08 3:22 
AnswerRe: really suck reading xmls Pin
Paddy Boyd21-Oct-08 3:24
Paddy Boyd21-Oct-08 3:24 
AnswerRe: really suck reading xmls Pin
Johan Hakkesteegt21-Oct-08 3:37
Johan Hakkesteegt21-Oct-08 3:37 
AnswerRe: really suck reading xmls Pin
Gideon Engelberth21-Oct-08 11:09
Gideon Engelberth21-Oct-08 11:09 
AnswerRe: really suck reading xmls Pin
ls780h25-Oct-08 1:00
ls780h25-Oct-08 1:00 
QuestionCrashes on application exit while hosting an VB ActiveX Control providing UI in a MFC application Pin
Martin081521-Oct-08 2:06
professionalMartin081521-Oct-08 2:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.