I know that the color bf
command sets the colors of the whole command line window but I wanted to to print one single line in a different color.
相关问题
- Inheritance impossible in Windows Runtime Componen
- how to get running process information in java?
- Is TWebBrowser dependant on IE version?
- How can I have a python script safely exit itself?
- I want to trace logs using a Macro multi parameter
相关文章
- 如何让cmd.exe 执行 UNICODE 文本格式的批处理?
- 怎么把Windows开机按钮通过修改注册表指向我自己的程序
- Warning : HTML 1300 Navigation occured?
- Bundling the Windows Mono runtime with an applicat
- Windows 8.1 How to fix this obsolete code?
- Emacs/xterm color annoyance on Linux
- Compile and build with single command line Java (L
- CosmosDB emulator can't start since port is al
I looked at this because I wanted to introduce some simple text colors to a Win7 Batch file. This is what I came up with. Thanks for your help.
Windows 10 - TH2 and above:
Using the actual keys: echo Ctrl
+
[[32m HI
Ctrl+[[0m
EnterYou should see a green "HI" below it.
Code numbers can be found here:
To save this into notepad, you can type ESC into it using: Alt
+027
with the numpad, then the[32m
part. Another trick when I was on a laptop, redirect the line above into a file to get started, then cut and paste: