This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
cb-legacy-dev/installers/dosboxw95/guest_tools/guest-scripts/640_16bpp.bat
2023-11-18 17:56:10 +01:00

18 lines
897 B
Batchfile

@echo off
mkdir C:\WINDOWS\TEMP
echo REGEDIT4 > C:\WINDOWS\TEMP\set640.reg
echo. >> C:\WINDOWS\TEMP\set640.reg
echo [HKEY_LOCAL_MACHINE\Config\0001\Display\Settings\] >> C:\WINDOWS\TEMP\set640.reg
echo "fonts.fon"="vgasys.fon" >> C:\WINDOWS\TEMP\set640.reg
echo "fixedfon.fon"="vgafix.fon" >> C:\WINDOWS\TEMP\set640.reg
echo "oemfonts.fon"="vgaoem.fon" >> C:\WINDOWS\TEMP\set640.reg
echo "DPILogicalX"="96" >> C:\WINDOWS\TEMP\set640.reg
echo "DPILogicalY"="96" >> C:\WINDOWS\TEMP\set640.reg
echo "DPIPhysicalX"="96" >> C:\WINDOWS\TEMP\set640.reg
echo "DPIPhysicalY"="96" >> C:\WINDOWS\TEMP\set640.reg
echo "BitsPerPixel"="16" >> C:\WINDOWS\TEMP\set640.reg
echo "Resolution"="640,480" >> C:\WINDOWS\TEMP\set640.reg
echo "DisplayFlags"="0" >> C:\WINDOWS\TEMP\set640.reg
C:\WINDOWS\REGEDIT.EXE /L:C:\WINDOWS\SYSTEM.DAT /R:C:\WINDOWS\USER.DAT C:\WINDOWS\TEMP\set640.reg
del C:\WINDOWS\TEMP\set640.reg