You are not logged in.
Pages: 1
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?
Joe
Offline
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.
Offline
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;
[list]
color:0F
...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
Offline
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:
[section]
term=value
So I'd maybe try:
[list]
lcolor=0f
Last edited by bluesxman (24 Jan 2021 23:37)
cmd | *sh | ruby | chef
Offline
[list] lcolor=0f
Right.
And this INIT is applied to list.exe too:
The environment variable INIT must point to the directory containing the tools.ini file.
Offline
Thanks folks, I have it working now.
Here's my TOOLS.INI file;
[list]
lcolor:02
tcolor:02
ccolor:02
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)
Joe
Offline
Pages: 1