Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to map a drive
Message
 
 
To
15/06/2002 07:01:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00668862
Message ID:
00668915
Views:
12
>how to automatically map a drive ?
*** Try this:
*** x represents the mapped drive
*** \\Dvmlab8\dvmdbf\ represents the network volume(station)and directory to map to

If Drivetype('x')=1
oNet = CREATEOBJECT('WScript.Network')
oNet.MapNetworkDrive("x:","\\Dvmlab8\dvmdbf\")
rele onet
endif

hope this saves you some time
Ronl
Previous
Reply
Map
View

Click here to load this message in the networking platform