How to change screen resolution and the size of items using command line/programmatically/batch or macro?

Çağrı Uslu picture Çağrı Uslu · Aug 22, 2015 · Viewed 7.8k times · Source

I have a 3200x1800 screen. For daily use, I am at 3200x1800 at %200 window size. For gaming I usually drop to 1600x900 at %100 magnification. Can I write/find some kind of an automated tool which can switch between these modes. I am fine with writing a C/C++/C# program, and/or a batch file which can also log me out automatically, because you need to log out and in, in order the settings to take effect. I am on Win10 by the way.

Answer

Happy Face picture Happy Face · Aug 22, 2015

Display Changer II is the best software I can find.

1) Copy dc2.exe to system32\ folder.
2) dc2.exe -dccmd.exe –listmonitors return the current screen resolution along with refresh rate and monitor type.
3) dc2.exe -width=1600 -height=900 -refresh=60 (more parameters can be added if desired) (E.g: dc2.exe -width=1600 -height=900 -refresh=60 cmd /c “C:\Program Files\text.txt”)