Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to tell what server a drive is mapped to?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00463131
Message ID:
00463222
Vues:
14
Here is an example using windows scripting. Just a little hack. I don't know of fox api to do this.

? "Start of example"
lcFile = getFile()
? lcFile
lcDrive = justdrive(lcFile)
x = CREATEOBJECT("WScript.Network")
for i = 0 to x.EnumNetworkDrives.Count
   IF x.enumNetworkDrives.Item(i) = lcDrive
      lcPathNeeded = x.enumNetworkDrives.Item(i + 1)
      i = x.EnumNetWorkDrives.Count + 1
   ENDIF
endfor
? lcPathNeeded
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform