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:
00287210
Vues:
24
>>>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,
>
>In VFP6, there is also a new function ANETRESOURCES()...
>
>
>Wayne

Yes, but that returns the shares available on a server. It doesn't help in this case where he apparently wants to know what server hosts a network drive on his workstation.
-cjh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform