Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapping to network drive using .BAT file
Message
From
23/03/2004 13:52:49
 
 
To
23/03/2004 11:39:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00888895
Message ID:
00888976
Views:
21
Cetin--

>Declare integer WNetCancelConnection in WIN32API String lpName,short lForce
>Declare integer WNetAddConnection in WIN32API ;
> string lpRemoteName, ;
> string lpPassword, ;
> string lpLocalName
>
>*Add connection
>WNetAddConnection("\\W0028109792\DATAWARE", "", "R:")
>
>*Remove connection
>*WNetCancelConnection("R:",0)
>
>PS: WNetAddConnection2 and WNetCancelConnection2 supersedes and have more options for connections like dipslaying a prompt for username and pw for user to connect.


I did the old cut and paste and my R drive does not appear. I moved the WnetCancelConnection in front of the WNetAddConnection.

Any thoughts on what the problem might be? How do I get the errors from these guys?

Tim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform