getsysinfo


Purpose
Get information about the running operating system.
Synopsis
function getsysinfo:string
function getsysinfo(what:integer):string
function getsysinfo(I:Mosel):string
function getsysinfo(I:Mosel,what:integer):string
Arguments
what 
What information to collect:
SYS_NAME 
Name of the operating system
SYS_VER 
Version name of the operating system
SYS_REL 
Release number of the operating system
SYS_PROC 
Processor type
SYS_ARCH 
Processor architecture (32 or 64 bit)
SYS_NODE 
Computer name
A Mosel instance
Return value
A text string reporting the requested information.
Example
The following prints the computer name and its operating system version:
writeln("Node ",getsysinfo(SYS_NODE)," is running ",getsysinfo(SYS_NAME+SYS_REL))
Further information
1. Several information items can be obtained in a single call by summing up the option codes. In such a case, the resulting string consists in the different items separated by commas.
2. When the function is used without the what parameter, all information items are returned.
3. This function may also be used with a Mosel instance as its first parameter. In this case the returned information relates to the system running this instance instead of the current system.
Related topics
mmjobs
Module
mmsystem


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.