I have a PC being connected to the big TV from time to time plays the role of the media center.
On WinXP, after reading pdfka Nvidia Control Panel API — I formed this label
%windir%\\system32\undll32.exe NvCpl.dll,dtcfg attach 2
Weigh it on WinLirc or just run from the desktop — it doesn't matter, the point is that one click turn on the TV out.
It's a shame that on Win7 x86 reaction this thing to no avail (probably a different API) and I want to implement.
Well, not only the connection of a second monitor but also interested in disabling him with a single command.