Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically Set / Unset Network Shares
Message
From
25/09/2004 05:58:42
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00945960
Message ID:
00945966
Views:
27
Hi Jojo,

if you have Windows Scripting Host installed, you can set a file share like this:
oNet = CREATEOBJECT("Wscript.Network")
oNet.MapNetworkDrive("V:", "\\Server\Volume\dir", .F., "UserName", "Pasword")
to disconnect:
oNet = CREATEOBJECT("Wscript.Network")
oNet.RemoveNetworkDrive('V:')
>Does anybody can share a code that can programmatically set/unset file shares in an intranet? Or anybody can provide a link where i can read some information.
>
>Any suggestion for books on API/Socket Programming?
>
>TIA.
Previous
Reply
Map
View

Click here to load this message in the networking platform