윈도우10 배율 (dpi) 변경 스크립트
2019.08.27 03:29
https://superuser.com/questions/1334781/is-it-possible-to-change-display-scaling-via-command-line
@ECHO OFF
explorer ms-settings:display
ping -n 2 127.0.0.1 > nul
:VBSDynamicBuild
SET TempVBSFile=%tmp%\~tmpSendKeysTemp.vbs
IF EXIST "%TempVBSFile%" DEL /F /Q "%TempVBSFile%"
ECHO Set WshShell = WScript.CreateObject("WScript.Shell") >>"%TempVBSFile%"
ECHO Wscript.Sleep 500 >>"%TempVBSFile%"
ECHO WshShell.SendKeys "{TAB}{UP 5}" >>"%TempVBSFile%"
ECHO Wscript.Sleep 500 >>"%TempVBSFile%"
ECHO WshShell.SendKeys "%%{F4}" >>"%TempVBSFile%"
CSCRIPT //nologo "%TempVBSFile%"
EXIT
dpi100.cmd - 위로 한 칸
dpi125.cmd - 아래로 한 칸
자매품
현재 해상도 취득 - https://superuser.com/a/1028773
wmic path Win32_VideoController get VideoModeDescription,CurrentVerticalResolution,CurrentHorizontalResolution /format:value
현재 dpi 취득 - https://stackoverflow.com/questions/10365394/change-windows-font-size-dpi-in-powershell
cd 'HKCU:\Control Panel\Desktop'
Get-ItemProperty -Path . -Name "LogPixels"
현재 dpi 취득 #2 - https://powershell.org/forums/topic/how-to-get-screen-resolution-with-dpi-scaling-in-a-remote-desktop-session/#post-61053
(Get-ItemProperty 'HKCU:\Control Panel\Desktop\WindowMetrics' -Name AppliedDPI).AppliedDPI
DPI Scale Factors
끝