mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
core: 修复批处理乱码
This commit is contained in:
parent
1d78368c00
commit
7d02eebfd5
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,4 +1,5 @@
|
||||
@echo off
|
||||
mode con cp select=65001 >nul
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
set "files[1]=%windir%\System32\GroupPolicy\gpt.ini"
|
||||
|
@ -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
|
||||
|
@ -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 和后台面板不一致
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user