Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping and Unmapping
Message
 
 
To
17/09/1998 08:53:37
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00137678
Message ID:
00137750
Views:
28
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform