>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