DADiSP Worksheet Functions > Function Categories > Operating System Interface > GETCOMPUTER

 

GETCOMPUTER

Purpose:

Returns the computer type, OS type, CPU type for the host computer.

Syntax:

GETCOMPUTER(type)

type

-

Optional. An integer, the information type.

-1:

CPU type

 0:

machine type, returns 0 for Windows (default)

 1:

OS type

Returns:

An integer, the computer type, CPU type or OS type.

Example:

getcomputer()

 

returns 0 for a Windows machine.

Example:

getcomputer(1)

 

returns an integer representing the OS version of the host computer.

Remarks:

CPU type and OS type return the vendor specific value for the host computer.

See Also:

GETCONFIG

GETENV

GETEXENAME