Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically get the Computer Name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01275848
Message ID:
01276094
Vues:
27
>IMO even simpler is
>? GetEnv("COMPUTERNAME")
>

>
>I would have to agree with you there < s >.
>
>I never thibk of GetEnv() anymore because, as the help file says:
>
>Returns the contents of the specified MS-DOS environment variable.

Information for the PC without UDF's ;o)))
? GETENV("ALLUSERSPROFILE")
? GETENV("APPDATA")
? GETENV("CommonProgramFiles")
? GETENV("ComSpec")
? GETENV("HOMEDRIVE")
? GETENV("HOMEPATH")
? GETENV("NUMBER_OF_PROCESSORS")
? GETENV("Path")
? GETENV("PROCESSOR_IDENTIFIER")
? GETENV("ProgramFiles")
? GETENV("SystemRoot")
? GETENV("USERNAME")
*** ...
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform