Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Map drive letter
Message
From
19/12/2000 01:09:51
 
 
To
18/12/2000 08:36:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00454633
Message ID:
00454940
Views:
24
>Can I map drive letter to a directory or drive of other computer on network?

Assuming you have the necessary connectivity to the network, you can use the Windows Script Host's Wscript.Network automation object to map a local drive letter to a network share using the MapNetworkDrive method. There is equivalent functgionality available through the Win32 Platform SDK; my NETRESOURCE class, downloadable from the Files section on UT, has sample code to use the WNetAddConnection3() API call to attach a network share as a mapped drive.

Aside from the use of a COM object like that provided by WSH, or calling the Windows API, there is no native VFP command that replaces these functions. Both automation and the Windows API can be called from a VFP application.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform