2013年6月17日 星期一

在XP用command line變更螢幕解析度

From Evernote:

在XP用command line變更螢幕解析度

Clipped from: http://ss64.com/nt/syntax-variables.html
  1. 下載並安裝工具 Display Changer : http://12noon.com/?page_id=80
  2. 因為我的第二個螢幕每次開機會因為KVM的關係解析度有問題,想要在每次開機後手動改變第二個螢幕的解析度。將以下三行指令存成.cmd檔:
"%ProgramFiles%\12noon Display Changer\dc.exe" -monitor="\\.\DISPLAY2" -detach
ping 1.1.1.1 -n 1 -w 5000 > nul
"%ProgramFiles%\12noon Display Changer\dc.exe" -monitor="\\.\DISPLAY2" -secondary -lx=1920 -ty=280 -width=1920 -height=1200 -refresh=60 -depth=16 -fixedoutput=default

第一行是先移除DISPLAY2所有設定,等於是不延伸到第二個螢幕
第二行是等個五秒鐘,如果不等個幾秒,第三行在我這邊無法正確執行
第三行設定DISPLAY2為次要螢幕,並設定相對位置、解析度、更新頻率、色彩還有桌布呈現方式