I want to change the Display Arrangement of my computer via Command line. I have 2 monitors set up, extending, and I want to change the monitors setup from Dual Display to Single Display and back via command line.
I've had a look through QRes and nircmd. While QRes lacks multimonitor support entirely, nircmd cannot disable a monitor, only change the primary state and the resolution of separate screens.
It would be appreciated if you know of a way to do that.
Edit: I will post my solution here using the display changer in climenoles answer:
@echo offREM setting to single screenecho *** Disabling Screen 2 *** cd C:\Program Files (x86)\12noon Display Changer\dc64cmd.exe -monitor="\\.\DISPLAY2" -detachecho Starting TF2 -fullscreen -novid -console -w 1920 -h 1200REM Starting Team Fortress 2 fullscreencd C:\Program Files (x86)\SteamSteam.exe -applaunch 440 -fullscreen -novid -console -w 1920 -h 1200REM pausing because steam.exe returns before TF2 quitsecho Press a key to reenable Screen 2pausecd C:\Program Files (x86)\12noon Display Changer\dc64cmd.exe -monitor="\\.\DISPLAY2" -secondary