CODE
rundll32.exe nvcpl.dll,dtcfg setview [attached monitor #] [format] [device]
Where...
- attached monitor number is in the format of just a single number. Ex: 2
- format is one of the following
standard
clone
hspan
vspan
dualview
- device is optional, to specify what takes primary and secondary
Available values are A - analog, D - digital display, T - TV. The best way to explain is by example.
CODE
rundll32.exe nvcpl.dll,dtcfg setview 1 clone DA AA
This line will set display number 1 in clone mode, setting the first attached [D]igital display as primary and first attached [A]nalog display as secondary.
You could have multiple digital displays and they would be labeled: DA DB DC successively.
CODE
rundll32.exe nvcpl.dll,dtcfg setview 1 clone DA DB
This line will set display number 1 in clone mode, setting the first attached [D]igital display as primary and second attached [D]igital display as secondary.
thanks to Teraphy, link at: http://www.laptopvideo2go.com/forum/lofiversion/index.php?t9392.html
Here's an example of my situation: I have a 32" LCD HDTV and a 20" LCD computer monitor. Because the aspect ratios are different, I have to use different settings when watching DVD or TV on each display. Note that the HTDV is using a VGA cable, and the monitor is using a DVI cable.
This command line will set the 20" monitor as primary while still allowing me to see a display on the TV set:
rundll32.exe nvcpl.dll,dtcfg setview 1 clone DA AA
This command makes the HTDV the primary display.
rundll32.exe nvcpl.dll,dtcfg setview 1 clone AA DA
If I was using 2 DVI connectors (one going to the monitor's DVI port and one going to the HDTV's HDMI port), the command lines would look like this, respectively:
rundll32.exe nvcpl.dll,dtcfg setview 1 clone DA DB
rundll32.exe nvcpl.dll,dtcfg setview 1 clone DB DA
Reversing these two lines may be necessary, depending on which monitor the video card sees first.