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:
00464409
Vues:
16
Thanks Deamon, interesting way to do it

>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
For every bug fixed, there is a bigger bug not yet discovered.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform