Res is a little windows command line utility to report the current screen resolution and
refresh and optionally change it to something else. If you attempt to change it to the current
mode it does nothing, so it can be used in your startup folder. The source code is included in
the download and is covered under the LGPL
The parameters for the command are:
Displays the current screen mode(s).
- -x <width>
Set the horizontal resolution in pixels
- -y <height>
Set the vertical resolution in pixels
- -bpp <bits_per_pixel>
Set the number of bits per pixels, valid values
are 4, 8, 15, 16, 24 or 32 depending on your video card.
- -refresh <refresh_rate>
Set the refresh rate in Hz. This is dependant on
what your video card and monitor support, do check in the display
- -device <device_index>
This optional parameter sets the device to set.
To get the device index first list the devices by running Res with
no parameters. If not supplied the primary display will be changed.
The output on my machine looks like this:
Memecode Res v1.00
Current Desktop Resolution: 1280 x 1024 @ 32 bits per pixel, refresh=60hz.
Device is 'NVIDIA Quadro FX 1000' (\\.\DISPLAY1)
Attached monitor is 'Plug and Play Monitor' (\\.\DISPLAY1\Monitor0)
Current mode: 1280 x 1024 @ 32 bit per pixel, refresh 60 hz.
Device is 'NetMeeting driver' (\\.\DISPLAYV1)
Device is 'RDPDD Chained DD' (\\.\DISPLAYV2)
Usage: res -x <width> -y <height> -bpp <bits_per_pixel> -refresh <refresh_rate> [-device <index>]
Example: res -x 1280 -y 1024 -bpp 32 -refresh 75