Consultor Eletrônico



Kbase P18914: How to programmatically find out the exact Windows Operating System version?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Verified

GOAL:

How to programmatically find out the exact Windows Operating System version?

GOAL:

How to find out the exact Windows OS version from within a Progress 4GL program using the OS-COMMAND Statement?

FACT(s) (Environment):

Windows

FIX:


DEFINE VARIABLE vWinVer AS CHARACTER NO-UNDO.

OS-COMMAND SILENT VALUE("VER >OPSYS.TXT":U).

INPUT FROM VALUE("OPSYS.TXT":U).

REPEAT:
   IMPORT UNFORMATTED vWinVer.
   IF vWinVer <> "":U THEN
    MESSAGE vWinVer VIEW-AS ALERT-BOX INFO TITLE "Windows Version".
END.

INPUT CLOSE.