diff --git a/reinstall.bat b/reinstall.bat index 99dcb96..c35a1f1 100644 --- a/reinstall.bat +++ b/reinstall.bat @@ -1,5 +1,7 @@ @echo off +mode con cp select=65001 >nul setlocal EnableDelayedExpansion + set confhome=https://raw.githubusercontent.com/bin456789/reinstall/main set github_proxy=raw.gitmirror.com diff --git a/reinstall.sh b/reinstall.sh index 0a0aece..8260be5 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -1645,8 +1645,8 @@ if is_in_windows; then fi # 更改 windows 命令输出语言为英文 - # chcp.com 437 # 会清屏 - mode.com con cp select=437 >/dev/null + # chcp.com 65001 # 会清屏 + mode.com con cp select=65001 >/dev/null fi # 检查 root diff --git a/windows-del-gpo.bat b/windows-del-gpo.bat index 8f36e26..6e543a8 100644 --- a/windows-del-gpo.bat +++ b/windows-del-gpo.bat @@ -1,4 +1,5 @@ @echo off +mode con cp select=65001 >nul setlocal enabledelayedexpansion set "files[1]=%windir%\System32\GroupPolicy\gpt.ini" diff --git a/windows-resize.bat b/windows-resize.bat index 60ecda8..8c66ce5 100644 --- a/windows-resize.bat +++ b/windows-resize.bat @@ -1,4 +1,6 @@ @echo off +mode con cp select=65001 >nul + set C=%SystemDrive:~0,1% for /f "tokens=2" %%a in ('echo list vol ^| diskpart ^| findstr "\"') do (echo select vol %%a & echo delete partition) | diskpart for /f "tokens=2" %%a in ('echo list vol ^| diskpart ^| findstr "\<%C%\>"') do (echo select vol %%a & echo extend) | diskpart diff --git a/windows-set-netconf.bat b/windows-set-netconf.bat index e74e154..3b8bf42 100644 --- a/windows-set-netconf.bat +++ b/windows-set-netconf.bat @@ -11,6 +11,7 @@ rem set ipv6_dns1=::1 rem set ipv6_dns2=::2 @echo off +mode con cp select=65001 >nul setlocal EnableDelayedExpansion rem 禁用 IPv6 地址标识符的随机化,防止 IPv6 和后台面板不一致 diff --git a/windows-setup.bat b/windows-setup.bat index 2ab26e8..e43efec 100644 --- a/windows-setup.bat +++ b/windows-setup.bat @@ -1,4 +1,5 @@ @echo off +mode con cp select=65001 >nul rem 使用高性能模式 rem https://learn.microsoft.com/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim