General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2003 Server
>>>>>>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.
At first glance, I'd say that the "V" parameter would return the volume label.
(edit)
Just tried it out.
For a local drive it returns the volume label
For a drive letter corresponding to a network drive, you get the UNC path for the drive letter "root"
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only