Batch Color per line

前端 未结 9 1254
耶瑟儿~
耶瑟儿~ 2020-11-28 11:47

In batch, can you have different colors per line. For example if you had a batch file say \"Hello\" \"How are you?\"

Could you have \"Hello\" in blue and \"How are y

9条回答
  •  甜味超标
    2020-11-28 12:42

    You can try this just with a little bit of command:

    @echo off
    chcp 437>nul&&graftabl 936>nul
    ren %WinDir%\System32\config.nt config.nt.bak 2>nul
    <"%~f0" more +6 >%WinDir%\System32\config.nt
    command /cecho [1;31mHel[32mlo [33mHow[35mare[36myou[m
    pause>nul&exit
    DOSONLY
    dos=high, umb
    device=%SystemRoot%\system32\himem.sys
    DEVICE==%SystemRoot%\System32\ANSI.SYS /x
    files=40
    

提交回复
热议问题