ansicon -i not working in Windows 7 x64

3.4k Views Asked by At

I have followed the direction on this site http://softkube.com/blog/ansi-command-line-colors-under-windows/ for downloading ansicon so I can have colored text in my command line. I run windows 7 on a 64-bit system. I extracted the downloaded zip files from my downloads directory into C:\ansicon. When I cd to the ansicon directory and type "ansicon -i" it responds with

'ansicon' is not recognized as an internal or external command, operable program or batch file

What's going wrong here?

2

There are 2 best solutions below

2
On BEST ANSWER

Well the instructions on that page are slightly misleading, the directory ansicon will contain one subdir for x86 (32 bits) and one for x64 (64 bits).

In a command window (win-r, cmd) go to

c:\ansicon\x64

and there execute

ansicon -i
0
On

The following steps should work well:

  1. Download and unzip the latest version from https://github.com/adoxa/ansicon/downloads
  2. Open a command prompt and cd to the folder where you unzipped it
  3. Now, cd into x64 and install it globally on your machine (For example, C:\ansicon\x64)
  4. Type ansicon.exe –i OR ansicon -i and press Enter
  5. Any program that prints ANSI colors will now display properly on your machine