core: 修复批处理乱码

This commit is contained in:
bin456789 2024-03-19 21:36:21 +08:00
parent 1d78368c00
commit 7d02eebfd5
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B
6 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -1,4 +1,5 @@
@echo off
mode con cp select=65001 >nul
setlocal enabledelayedexpansion
set "files[1]=%windir%\System32\GroupPolicy\gpt.ini"

View File

@ -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 "\<installer\>"') 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

View File

@ -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 和后台面板不一致

View File

@ -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