windows: 使用 437 代码页
This commit is contained in:
parent
e3fe839329
commit
55cc1a47ac
@ -1,10 +1,12 @@
|
||||
@echo off
|
||||
mode con cp select=65001 >nul
|
||||
mode con cp select=437 >nul
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
set confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||
set github_proxy=raw.gitmirror.com
|
||||
|
||||
rem 65001 代码页会乱码
|
||||
|
||||
rem 不要用 :: 注释
|
||||
rem 否则可能会出现 系统找不到指定的驱动器
|
||||
|
||||
|
@ -1645,8 +1645,8 @@ if is_in_windows; then
|
||||
fi
|
||||
|
||||
# 更改 windows 命令输出语言为英文
|
||||
# chcp.com 65001 # 会清屏
|
||||
mode.com con cp select=65001 >/dev/null
|
||||
# chcp 会清屏
|
||||
mode.com con cp select=437 >/dev/null
|
||||
fi
|
||||
|
||||
# 检查 root
|
||||
|
@ -1,5 +1,5 @@
|
||||
@echo off
|
||||
mode con cp select=65001 >nul
|
||||
mode con cp select=437 >nul
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
set "files[1]=%windir%\System32\GroupPolicy\gpt.ini"
|
||||
|
@ -1,5 +1,5 @@
|
||||
@echo off
|
||||
mode con cp select=65001 >nul
|
||||
mode con cp select=437 >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
|
||||
|
@ -11,7 +11,7 @@ rem set ipv6_dns1=::1
|
||||
rem set ipv6_dns2=::2
|
||||
|
||||
@echo off
|
||||
mode con cp select=65001 >nul
|
||||
mode con cp select=437 >nul
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
rem 禁用 IPv6 地址标识符的随机化,防止 IPv6 和后台面板不一致
|
||||
|
@ -1,11 +1,9 @@
|
||||
@echo off
|
||||
mode con cp select=437 >nul
|
||||
|
||||
rem 正常来说应该用 46001 代码页
|
||||
rem 但 win7 find 命令在 46001 代码页下有问题,仅限 win 7
|
||||
rem echo a | find "a"
|
||||
rem win7 find 命令在 65001 代码页下有问题,仅限 win 7
|
||||
rem findstr 就正常,但安装程序又没有 findstr
|
||||
rem 只好用 437 代码页,好像也没副作用
|
||||
rem echo a | find "a"
|
||||
|
||||
rem 使用高性能模式
|
||||
rem https://learn.microsoft.com/windows-hardware/manufacture/desktop/capture-and-apply-windows-using-a-single-wim
|
||||
|
Loading…
Reference in New Issue
Block a user