Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the sever name by letter
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00287179
Message ID:
00287192
Vues:
36
>I have a win98 network
>
>I can I return the server name only by the letter
>eg.
> suppose i dont know the servers name.
>
>
> c:\ returns \\computer1
> d:\ returns \\computer2
> e:\ returns \\computer3
>
> etc.
>
>I need to store that to a variable
>
>

Try:

adir(atemp, "X:\*.*", "V")

aTemp[1] should contain the Volume label of drive X. If X is a network drive it will contain the share name of that network drive. (In my case, it returns "\\atlsrv001\c$".

HTH,
-cjh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform