Code
:: Enable or Disable JPEG Desktop Wallpaper Import Quality Reduction in Windows 10
@Echo Off & Cls
net sess>nul 2>&1||(powershell start cmd -ArgumentList """/c %~0""" -verb Runas & exit)
Cls & Mode CON LINES=11 COLS=85 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo Disable JPEG Desktop Wallpaper Import Quality Reduction (Y/N)?
Echo.
Echo.
Echo.
Set /p input= RESPONSE:
If /i Not %input%==Y (Goto :_Ex) Else (Goto :_Start)
:_Ex
If /i Not %input%==N (Goto :EOF) Else (Goto :_RegRestore)
:_Start
Reg.exe add "HKCU\Control Panel\Desktop" /v "JPEGImportQuality" /t REG_DWORD /d "100" /f >Nul
Cls & Mode CON LINES=11 COLS=85 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo Disabling JPEG Desktop Wallpaper Import Quality Reduction
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Goto Reboot
:_RegRestore
Reg.exe delete "HKCU\Control Panel\Desktop" /v "JPEGImportQuality" /f >Nul
Cls & Mode CON LINES=11 COLS=85 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo Enabling JPEG Desktop Wallpaper Import Quality Reduction
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
:Reboot
Cls & Mode CON LINES=11 COLS=51 & Color 0E & Title FreeBooter
Echo.
Echo.
Echo THIS COMPUTER WILL REBOOT
Echo.
Echo.
Echo PLEASE SAVE ALL WORK IN PROGRESS
Echo.
Echo.
Echo PRESS 'ENTER' KEY TO REBOOT PC
Pause >Nul
Shutdown -r -t 5 -c "REBOOTING SYSTEM"
