Velocity Reviews > Getting path of the mapped folder

# Getting path of the mapped folder

=?Utf-8?B?U3JpZGhhcg==?=
Guest
Posts: n/a

 12-16-2005
Hi,

I have a question. I am trying to write File Functions to read data from a
file. This function accepts FilePath as the parameter and returns Byte()
Array. Some times if the file is on the Network and let's say the Network
folder '\\SomeMachine\SomeFolder' is mapped to some drive like 'Z:\' then how
do I get the real path '\\SomeMachine\SomeFolder' instead of 'Z:\' ?

Thanks,
Sridhar.

=?Utf-8?B?RWx0b24gVw==?=
Guest
Posts: n/a

 12-16-2005
Open Windows explorer.
Menu Tools -> Map Network Driver…
Click Drive Dropdown list. It shows all mapped drivers.

HTH

Elton Wang

"Sridhar" wrote:

> Hi,
>
> I have a question. I am trying to write File Functions to read data from a
> file. This function accepts FilePath as the parameter and returns Byte()
> Array. Some times if the file is on the Network and let's say the Network
> folder '\\SomeMachine\SomeFolder' is mapped to some drive like 'Z:\' then how
> do I get the real path '\\SomeMachine\SomeFolder' instead of 'Z:\' ?
>
> Thanks,
> Sridhar.

=?Utf-8?B?U3JpZGhhcg==?=
Guest
Posts: n/a

 12-16-2005
I need to do that inside ASP.NET. How could I do that?

"Elton W" wrote:

> Open Windows explorer.
> Menu Tools -> Map Network Driver…
> Click Drive Dropdown list. It shows all mapped drivers.
>
> HTH
>
> Elton Wang
>
> "Sridhar" wrote:
>
> > Hi,
> >
> > I have a question. I am trying to write File Functions to read data from a
> > file. This function accepts FilePath as the parameter and returns Byte()
> > Array. Some times if the file is on the Network and let's say the Network
> > folder '\\SomeMachine\SomeFolder' is mapped to some drive like 'Z:\' then how
> > do I get the real path '\\SomeMachine\SomeFolder' instead of 'Z:\' ?
> >
> > Thanks,
> > Sridhar.