PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > GETSYSINFO command
GETSYSINFO command

Returns information to PC Windows system.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('GETSYSINFO')

CHGVAR

VAR(&PARM1) VALUE('ComputerName' | 'UserName' | 'OSVersion
| DefaultPrinter | LNCversion')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

 Parameters

 

Parameters

 

Parm1

 

 

 

 

This parameter can take one the following values :

ComputerName : &RESULT variable returns name of PC on network.

UserName : &RESULT variable returns name of current user on PC.

OSVersion : &RESULT variable returns the Windows OS version.

DefaultPrinter : &RESULT variable returns the name of the default printer.

LNCVersion: &RESULT variable contains the version number of the Launcher server on Windows side.

 

 

 

 

Note

 

If OSVersion is used, therefore &RESULT will contain one of the following values:

 

OS                                &RESULT

----------------------------  --------------

Windows 10                      10.0

Windows Server 2019             10.0

Windows Server 2016             10.0

Windows 8.1                     6.3

Windows Server 2012 R2          6.3

Windows 8                       6.2

Windows Server 2012             6.2

Windows 7                       6.1

Windows Server 2008 R2          6.1

Windows Server 2008             6.0

Windows Vista                   6.0

Windows Server 2003 R2          5.2

Windows Server 2003             5.2

Windows XP 64-Bit Edition       5.2

Windows XP                      5.1

Windows 2000                    5.0

Windows ME                      4.9

Windows 98                      4.10

 

Example

 

In this example current user name returns in &RESULT variable.

 

CHGVAR

VAR(&CMD) VALUE('GETSYSINFO')

CHGVAR

VAR(&PARM1) VALUE('UserName')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +
&PARM2 &RESULT)

 

To know installed Windows version.

CHGVAR

VAR(&CMD) VALUE('GETSYSINFO')

CHGVAR

VAR(&PARM1) VALUE('OSVersion')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +
&PARM2 &RESULT)

 

Returned &RESULT contains :

      WINDOWS   W8   00002-00006-00002-000023F0