(view source code of getres.cmd as plain text)
/* Display screen resolution settings */if RxFuncQuery( "SysLoadFuncs" ) <> 0 then do
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncsendres = SysIni( "USER", "PM_DISPLAYDRIVERS", "DEFAULTSYSTEMRESOLUTION" )
if res = "ERROR:" then do
saysay "Error getting resolution"
EXIT 1
endhorz = c2d( reverse( substr( res, 1, 4 ) ) )
vert = c2d( reverse( substr( res, 5, 4 ) ) )
cols = c2d( reverse( substr( res, 9, 4 ) ) )
saysay "Resolution: "||horz||" x "||vert||" @ "||cols||" colors"
page last modified: 2025-10-11; loaded in 0.0068 seconds