"David Bielawski" <David.Bielawski@raymarine.com> wrote:
> Hi Guys
>
> Does anybody know if there is .NET function call which returns the
> mapping info of a mapped drive?
>
> Tried various options and only get the drive letter returned, but
> really need the network drive name, so as to be able to differentiate
> between different servers.
> The program I am working on will eventually may up on several machines
> which could all be mapped to the same drive letter, even though the
> network is different.
Why not just use UNC's and skip the whol drive-letter issue completely?
That way you can always be sure exactly where you are pointing.
Except for legacy code drive letters haven't been needed for many years.
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
> Hi Guys
>
> Does anybody know if there is .NET function call which returns the
> mapping info of a mapped drive?
>
> Tried various options and only get the drive letter returned, but
> really need the network drive name, so as to be able to differentiate
> between different servers.
> The program I am working on will eventually may up on several machines
> which could all be mapped to the same drive letter, even though the
> network is different.
Why not just use UNC's and skip the whol drive-letter issue completely?
That way you can always be sure exactly where you are pointing.
Except for legacy code drive letters haven't been needed for many years.
Stan
--------------------------------------------------------------------------
Stan Bischof Agilent Technologies 707-577-3994 stan_bischof@agilent.com
--------------------------------------------------------------------------
---
You are currently subscribed to vrf as: ming_meng@agilent.com To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".
Does anybody know if there is .NET function call which returns the mapping info of a mapped drive?
Tried various options and only get the drive letter returned, but really need the network drive name, so as to be able to differentiate between different servers.
The program I am working on will eventually may up on several machines which could all be mapped to the same drive letter, even though the network is different.
Best regards
David Bielawski
[NPI] Test Development Engineer
Raymarine UK Ltd
Raymarine
…world leaders in marine electronics
Tel : +44 (0)23 9269 3611 (ext 1232)
Fax : +44 (0)23 9235 1994
e-mail : HYPERLINK "mailto:david.bielawski@raymarine.com"david.bielawski@raymarine.com
Website : HYPERLINK "http://www.raymarine.comRaymarine"www.raymarine.com
Raymarine UK Limited is a company registered in England & Wales
Registered office: Robinson Way, Anchorage Park, Portsmouth, Hampshire, PO3 5TD, United Kingdom
Registered number: 4578449
This e-mail is confidential and may be used only by the intended recipient. If you have received it in error,
please contact the sender immediately. Please then delete the e-mail and do not disclose its contents.
Disclaimer : http://www.raymarine.com/emailinfo-uk/
P Please consider the environment before printing this e-mail.
---
You are currently subscribed to vrf as: ming_meng@agilent.com
To subscribe please send an email to: "vrf-request@lists.it.agilent.com" with the word subscribe in the message body.
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
Search the "unofficial vrf archive" at "http://www.vrfarchive.com/vrf_archive".
Search the Agilent vrf archive at "http://vee.engineering.agilent.com".