先放上一个实例的bat文件,要求管理员特权运行:
@echo off ::CMD里显示彩色文字 chcp 437>nul&&graftabl 936>nul if not exist CONFIG.NT copy %WinDir%/System32/CONFIG.NT CONFIG.NT @cls echo DEVICE=%WinDir%/System32/ANSI.SYS /x >%WinDir%/System32/CONFIG.NT @echo. command /cecho
先放上一个实例的bat文件,要求管理员特权运行:
@echo off ::CMD里显示彩色文字 chcp 437>nul&&graftabl 936>nul if not exist CONFIG.NT copy %WinDir%/System32/CONFIG.NT CONFIG.NT @cls echo DEVICE=%WinDir%/System32/ANSI.SYS /x >%WinDir%/System32/CONFIG.NT @echo. command /cecho