ruby在windows 7 cmd 中顯示彩色文字
先放上一個實例的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
最後更新:2017-04-02 05:21:05