Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drive Mapping
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00425895
Message ID:
00426318
Vues:
23
Hi Mathias,

I always decode any mapping and store the UNC path. I published a routine to do this in FoxTalk in 1998. It's also available on my web site (http://www.civilsolutions.com.au/publications/)

Cheers,

Andrew




>Thanks.
>
>Thats what we've actually done. But it gets tricky where users have specified explicit paths including drive letters.
>
>
>>>I need help please.
>>>
>>>I have a program where the user may specify the data path to a directory on a mapped drive. Then I open a table in the specified directory and look in a field say cDataPath that contains something like "D:\Data".
>>>
>>>But this D is local to the machine that created the data in the first place. So I need to be able to check that I am actually mapped to this D and use my reference drive letter to access data in the d:\data directory. If my pc is not mapped to the D drive in question I need to know that, map it, used the assigned drive letter to access data.
>>>
>>>Any help, ideas or better ways of trying to achieve this?
>>>
>>>Thanks
>>>
>>Mathias,
>>
>>The Windows Script Host provides a method of mapping drives and I belive that Ed Rauh's NETRESOURCE class does this as well (requires his CLSHEAP). However, if this is a network environment, why not access the data via the UNC?


If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?


From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."


All my FoxTalk and other articles are available on my web site.


Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform