home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
screreso.zip
/
SCRERESO.CMD
Wrap
OS/2 REXX Batch file
|
2000-12-11
|
641b
|
25 lines
/* Display screen resolution settings and number of configured
colors */
if RxFuncQuery( "SysLoadFuncs" ) <> 0 then do
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
end
res = SysIni( "USER", "PM_DISPLAYDRIVERS", "DEFAULTSYSTEMRESOLUTION" )
if res = "ERROR:" then do
say
say "Error getting resolution"
EXIT 1
end
horz = c2d( reverse( substr( res, 1, 4 ) ) )
vert = c2d( reverse( substr( res, 5, 4 ) ) )
cols = c2d( reverse( substr( res, 9, 4 ) ) )
say
say "Screen Resolution is : "||horz||" x "||vert|| ,
" with " ||cols||" colors"
EXIT 0