Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mapping a network *folder* programmatically
Message
De
11/05/2017 17:10:33
 
 
À
11/05/2017 15:29:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01651049
Message ID:
01651058
Vues:
60
>Hi,
>
>You can map a network *share* to a drive letter with WSH using the MapNetworkDrive method. objNetwork.MapNetworkDrive(strLocalDrive, strRemoteShare, [persistent], [strUser], [strPassword])
>
>But I want to map a network *folder* to a drive letter.
>You can do it from Windows Explorer by highlighting the folder and clicking Easy Access > Map as Drive.
>You can also do it from the command line with NET USE because it allows you to add a "volume" to form the complete path that you want to map "\\ComputerName\ShareName\Volume"
>--> net use [{devicename | *}] [\\computername\sharename[\volume] [{password | *}]] [/user:[domainname\]username] [/user:[dotteddomainname\]username] [/user:[username@dotteddomainname] [/home {devicename | *} [{password | *}]] [/persistent:{yes | no}] [/smartcard] [/savecred] [/delete] [/help] [/?]
>
>Is there a windows-native way to do this?
>
>TIA,
>
>Alex

If you have Shared a folder on the server, you can use the old DOS subst command to assign a drive letter to a subfolder on it
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform