Re: How to get the UNC share name of a given folder (if shared)?
From: José Joye (jose.joye_at_KILLTHESPAMSbluewin.ch)
Date: 08/16/04
- Next message: Stoitcho Goutsev \(100\) [C# MVP]: "Re: Execute a Window Application in Command Line"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: How to get the UNC share name of a given folder (if shared)?"
- In reply to: Arild Bakken: "Re: How to get the UNC share name of a given folder (if shared)?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 16 Aug 2004 16:24:13 +0200
Thanks a lot,
This works!
José
"Arild Bakken" <arildb_@hotmail.com> wrote in message
news:%23KT8U14gEHA.596@TK2MSFTNGP11.phx.gbl...
> I guess you'll need to enumerate the shares on the computer and see if any
> of them refer to the given path. Take a look at the Win32_Share WMI class
> and the System.Management namespace.
>
> Arild
>
> "José Joye" <jose.joye@KILLTHESPAMSbluewin.ch> wrote in message
> news:%23MoBdt4gEHA.216@tk2msftngp13.phx.gbl...
> > Hello,
> >
> > Can someone could help me with the following:
> >
> > I have a directory (e.g.: C:\myTest) and I want to retrieve the UNC
share
> > name that has been assigned to it (or null if no share is defined for
this
> > particular directory).
> >
> > My first guess was to look at the DirectoryInfo Class. However, I could
> > not
> > find anything.
> >
> > Any help welcome!
> > José
> >
> >
>
>
- Next message: Stoitcho Goutsev \(100\) [C# MVP]: "Re: Execute a Window Application in Command Line"
- Previous message: Nicholas Paldino [.NET/C# MVP]: "Re: How to get the UNC share name of a given folder (if shared)?"
- In reply to: Arild Bakken: "Re: How to get the UNC share name of a given folder (if shared)?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|