Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a shared folder
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00525647
Message ID:
00525958
Views:
17
>Is it possible to share a folder from VFP or WSH or API or any method accessible from VFP ?


Here is how to map a network share, if that is what you mean:

oNetwork = CreateObject( "WScript.Network" )
oNetwork.MapNetworkDrive( "G:", "\\ServerName\FolderName" )

This would map the remote directory "\\ServerName\FolderName" to the local "G:" drive.


You can also pass a 3rd, 4th and 5th parameter. The 3rd is boolean, .T. to store the mapping in the user profile, default is .F. The 4th and 5th are a character data, they are a username and password for use if you are mapping the share with someones ID other than the current user. Good luck,
John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform