Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the sever name by letter
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00287179
Message ID:
00287192
Views:
37
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform