Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine the Operating System
Message
 
 
À
29/07/2001 13:54:09
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00537010
Message ID:
00537032
Vues:
23
>From a network file server what windows calls need to be made to determine the OS of the server? The exe file is resident locally and I need to print using custom paper sizes on printers located on other machines or even the server. Thanks.

Calvin,
If the systems are NT derivatives then you can use ADSI to do this.
ocomputer = GETOBJECT('WinNT://MyComputer,computer')
? ocomputer.OperatingSystem   && returns something like Windows NT
? ocomputer.OperatingSystemVersion  && returns version (i.e. 4.0)
HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform