Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Server Name in VFP
Message
From
04/08/2014 16:27:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP3
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01605124
Message ID:
01605156
Views:
80
>>>>>>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
Map
View

Click here to load this message in the networking platform