81-Toggle-Scale.ps1 writes LogPixels, Win8DpiScaling and AppliedDPI for the current user; the change needs a restart, so the .bat launcher offers to restart at the end. It is picked up by the existing NN-*.bat/.ps1 globs and copied to Desktop\Tools. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
600 B
Batchfile
22 lines
600 B
Batchfile
@echo off
|
|
setlocal
|
|
title Toggle display scale
|
|
|
|
rem No argument: switch between 100% and 200%. Pass 100 or 200 to force a value.
|
|
rem Runs as the current user (no elevation), because the scale is a per-user setting.
|
|
rem The change takes effect after a restart; the script offers to restart at the end.
|
|
|
|
set "SCALE=%~1"
|
|
if not defined SCALE set "SCALE=0"
|
|
|
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp081-Toggle-Scale.ps1" -Scale %SCALE%
|
|
if errorlevel 1 (
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
choice /c YN /m "Restart now"
|
|
if errorlevel 2 exit /b 0
|
|
shutdown.exe /r /t 5
|