Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
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"
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement