Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a shared folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00525647
Message ID:
00525958
Vues:
20
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform