#1 20 Jan 2021 21:21

Registered: 25 Dec 2020
Posts: 3

Change colours in LIST.EXE

LIST.EXE is available on my system in the following folders;

E:\Windows Kits\10\Debuggers\arm\ list.exe
E:\Windows Kits\10\Debuggers\x64\ list.exe
E:\Windows Kits\10\Debuggers\x86\ list.exe

Using LIST.EXE to view a file, and then pressing the F1 key brings up the help screen.

List - Help                             Rev 1.0j
Keyboard:                             [list] - in tools.ini
Up, Down, Left, Right                   width     - Width of crt
PgUp   - Up one page                    height    - Height of crt
PgDn   - Down one page                  buffer    - K to use for buffers (200K)
Home   - Top of listing                 tab       - Tab alignment #
End    - End of listing                 tcolor    - Color of title line
                                        lcolor    - Color of listing
W      - Toggle word wrap               hcolor    - Color of highlighted
^L     - Refresh display                bcolor    - Color of scroll bar
Q, ESC - Quit                           ccolor    - Color of command line
                                        kcolor    - Color of keyed input
/      - Search for string              nobeep    - Disables beeps
\      - Search for string. Any case
F4     - Toggle multifile search        ^ Up   - Pull copy buffer up
n, F3  - Next occurance of string       ^ Down - Pull copy buffer down
N      - Previous occurance of string   ^ Home - Slide copy buffer up
                                        ^ End  - Slide copy buffer down
C      - Clear highlight line           G      - Goto Line number
J      - Jump to highlighted line
M      - Mark highlighed                ^ PgUp - Previous File
                                        ^ PgDn - Next File
                                        F      - New File

It makes reference to a TOOLS.INI file, in which changes can be made for LIST.EXE to use in the [ LIST ] section.

A search of my Windows 10 [Version 10.0.19042.746] system does not find the TOOLS.INI file.

The command line help is limited;

e:\windows kits\10\debuggers\x64>list.exe /?
list [-s:string] [-g:line#] filename, ..

A Google search did not return anything useful to answer my question.

Would anyone know how to use the TOOLS.INI file to make changes for LIST.EXE to use, for example, how to change the colours, and where the TOOLS.INI should be located?



#2 20 Jan 2021 22:23

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 1,115

Re: Change colours in LIST.EXE

List.exe: is the 'List Text File Tool' in the 2000 and 2003 Resource Kit.

Given its age and the fact it hasnt been updated or included anywhere else, I think there is a good chance it doesn't support Unicode.
You will probably need to use trial and error to get the right syntax for the TOOLS.INI, I would start by putting a blank text file in the current directory.
Maybe try colour codes like the COLOR command.


#3 21 Jan 2021 18:35

Registered: 25 Dec 2020
Posts: 3

Re: Change colours in LIST.EXE

It appears to be a much newer version than what you indicate.

 Volume in drive E is New Volume   Serial number is 2c1e:6e61
 Directory of  E:\Windows Kits\10\Debuggers\x64\list.exe

2019-12-06  21:09          71,624  list.exe
              71,624 bytes in 1 file and 0 dirs    73,728 bytes allocated

I created a TOOLS.INI in the same folder;


...which is from the COLOR command color codes.

No change.

I will leave this here, in the hope that someone else can add their knowledge to this problem.

Thanks from Joe


#4 24 Jan 2021 23:37

From: UK
Registered: 29 Dec 2006
Posts: 1,126

Re: Change colours in LIST.EXE

That help text is somewhat unhelpful and I'm afraid have no prior knowledge of this tool, but I have a couple of observations.

1. You're using the term color, but this isn't one of the apparent configuration terms mentioned in the help text you pasted.
2. The typical format of an INI file is like so:


So I'd maybe try:


Last edited by bluesxman (24 Jan 2021 23:37)

cmd | *sh | ruby | chef


#5 25 Jan 2021 14:07

Registered: 25 Jan 2021
Posts: 3

Re: Change colours in LIST.EXE

bluesxman wrote:


And this INIT is applied to list.exe too:

https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/configuring-tools-ini wrote:

The environment variable INIT must point to the directory containing the tools.ini file.


#6 26 Jan 2021 02:21

Registered: 25 Dec 2020
Posts: 3

Re: Change colours in LIST.EXE

Thanks folks, I have it working now.

Here's my TOOLS.INI file;


I have set the INIT environment variable to point to the location of the TOOLS.INI file;

e:\windows kits\10\debuggers\x64>set i*
init=E:\Windows Kits\10\Debuggers\x64

So, when I launch LIST.EXE myfile.txt, it works! (Green on a Black Background)



Board footer

Powered by FluxBB