>>>>>Hi Gang.
>>>>>
>>>>>Question....
>>>>>
>>>>>How do I get the Server Name in Visual FoxPro 9 SP1 ?? The EXE that will acquire this will be on the server, running on the server.
>>>>>
>>>>>Thanks!
>>>>
>>>>Did you try SYS(0)
>>>>?
>>>
>>>That returned "TTILLMAN-DT # ttillman".
>>
>>Right, is the name of the server TTILLMAN-DT ?
>
>I found some help online...
>
>I used the ADIR function...
>
>ADIR(aFiles,"","V")
>
>Thanks
What does it return for you? Testing in the VFP command window returns 'OS' and also this letter is not documented in ADIR help.
If it's not broken, fix it until it is.
My Blog