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:
00526072
Vues:
32
Thanks but this is not what i was looking for, i actually found the answer ! but it's not pretty, i Call RUN /N NET SHARE MyShareName=C:\SomeFolder It creates a shared folder Called MyShareName and is then available to map it using WSH from any other computer.

Anyone knows of a better way to do this, with WSH Maybe ?

Thanks

>>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