Home » Questions » Computers [ Ask a new question ]

How to copy text from the cmd console and keep the formatting (with color)?

How to copy text from the cmd console and keep the formatting (with color)?

I want to cut and paste from cmd and keep the color information when pasting to another application. It's similar to pasting in most applications with formatting information.

Asked by: Guest | Views: 105
Total answers/comments: 2
Guest [Entry]

"The PowerShell folks, on their blog, posted an article titled: Colorized capture of console screen in HTML and RTF

Once it's in a RTF file, with colors, open the RTF with Word or OpenOffice and copy the text to your target application.

As PowerShell is a nice replacement of cmd.exe with a lot more features, give it a try."
Guest [Entry]

Colours in cmd are not the same as normal colours, it's the interpreter interpreting colour codes. I do not believe it's possible to do, and checking in Console2, it can't do it either, so it's probably for a very good reason.