Batch command to change the resolution of a computer
batch-file, command-line, screen-resolution, windows
Solution
I needed more options, so I developed ChangeScreenResolution.exe to change the screen resolution in a batch file.
Examples:
Change screen resolution of all monitors to 800x600px
ChangeScreenResolution.exe /w=800 /h=600
Change screen resolution of all monitors to 800x600px with refresh rate of 60Hz and 32bit color depth
ChangeScreenResolution.exe /w=800 /h=600 /f=60 /b=32
Set resolution of display with index 1 to 800x600px
ChangeScreenResolution.exe /w=800 /h=600 /d=1
To list all available displays (and their indexes):
ChangeScreenResolution.exe /l
Problem
I want to write a command in a batch file which changes the resolution of a computer. I am using Windows XP. I need to set the resolution as 1024*768.