Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapping and Unmapping
Message
 
 
À
17/09/1998 08:53:37
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00137678
Message ID:
00137750
Vues:
26
>>>Try
>>>
>>>DECLARE Integer WNetAddConnection IN WIN32API STRING @, STRING @, STRING @
>>>DECLARE Integer WNetCancelConnection IN WIN32API String @, INTEGER
>>>
>>>lcRemoteName = "\\Computer\Resource"
>>>lcPassword = "" && Connect using no password
>>>lcLocalName = "T:"
>>>
>>>? WNetAddConnection( @lcRemoteName, @lcPassword, @lcLocalName)
>>>*-- Return 0 if all is OK
>>>
>>>*-- Then to disconnect ( also returns 0 for OK)
>>>? WNetCancelConnection( @lcLocalName, 0)
>>
>>That works great. Now, how do make the new drive mapping part of the search path?
>
>Aye, there's the rub.
>
>Well, how about RUNning a DOS set path ... no, that was the original problem.
>I can only suggest that you add a path entry to say... T: in your path, then as you map the drives that you want to search , always use T:

That's the problem. I am at the mercy of a NW Login script, and I have to find a way to do this so the new setting scopes to the currect command session environment. So I am hoping to find a DLL way of doing this.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform