| Table of Contents |
|---|
| Welcome |
| Package Contents |
| Syntax |
| Return Codes (ERRORLEVEL) |
| How To... |
Display is a small command-linetool that allows you to either change display orientation or to change the brightness or the contrast of a specified display device (if supported by the display driver and the system) or to turn the monitors or the screen saver on and off to save power.
Notes:
- Both the display32.exe and display64.exe executable files don't have any runtime dependencies so they can be easily copied to a USB stick if needed to be used on other systems.
The package is provided as a compressed (zip) archive that holds a few files. The included files are described in the table below.
| File | Description |
|---|---|
| display32.exe | The Display program (32-bit version) |
| display64.exe | The Display program (64-bit version) |
| readme.htm | This file. |
Display features many parameters, for a whole list of the supported parameters and a description, type the following command in a Command window:
display32 /?
Examples:
-
To turn all the monitors off, use:
display32 /power off
-
To rotate the display orientation of monitor #2 by 90° counter-clockwise, use:
display32 /device 2 /rotate 90
When Display is used in a batch file, you can use ERRORLEVEL to check the completion code returned by the program. The possible return codes are listed in the table below.
| Code | Description |
|---|---|
| 0 | Success. |
| 1 | Syntax error or help/registration information displayed. |
| 2 | General failure. |
| 3 | Unable to adjust brightness. |
| 4 | Unable to adjust contrast. |
| 5 | Unable to set display orientation or position. |
- right-click the Desktop
- click New > Shortcut
- click Browse
- select display32.exe
- click OK
- put a blank after the path and append the two parameters: /rotate 90 /toggle
e.g. "C:\MyTools\display32.exe" /rotate 90 /toggle
Note: quotes are required if the path contains blanks.
- click Next
- give the shortcut a name e.g. Toggle Display Orientation
- click Finish
- Pin the new shortcut to the taskbar