Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

more command is missing (or not)?

Jan
686
15
I'm not sure about but I miss the more command. Have no more older versions of TCMD to test it ...

So, the following does not (no longer) works:

Code:
type example.txt | more

Is this WAD and what about the compatibility with CMD?

Greetings
 
MORE is an external, MORE.EXE. It comes with Windows and should be in your SYSTEM32 directory.

Me, I've aliased MORE to LIST since MS-DOS days.
 
Actually, it's MORE.COM. In spite of its name, it is a 64-bit PE32+ executable like many things in system32.

Did you remove ".COM" from the PATHEXT environment variable? That'd do it.
 
It depends on how your path is organized.

In my case,
I have c:\cygwin64\bin as the first entry in my path,
so that I can use the Cygwin versions,
thus;
Code:
E:\Utils>which more
more is an external : C:\cygwin64\bin\more.exe

Code:
E:\Utils>more --help

Usage:
 more [options] <file>...

A file perusal filter for CRT viewing.

Options:
 -d          display help instead of ringing bell
 -f          count logical rather than screen lines
 -l          suppress pause after form feed
 -c          do not scroll, display text and clean line ends
 -p          do not scroll, clean screen and display text
 -s          squeeze multiple blank lines into one
 -u          suppress underlining
 -<number>   the number of lines per screenful
 +<number>   display file beginning from line number
 +/<string>  display file beginning from search string match

     --help     display this help
 -V, --version  display version

For more details see more(1).

Thus, see which version of more that you are using.

As for me, I prefer using less;
Code:
type myfile.txt | less

Joe
 
First, thank you all!

more.com is here
Code:
C:\Windows\System32\more.com

Code:
.com
is in pathext.

Code:
C:\Windows\System32
is in path.

Code:
type more-test.txt | more
is no problem in CMD!

Code:
type more-test.txt | more
does not work in TCC!
Code:
TCC: Unbekannter Befehl "more"
(means unknown command)

If am correctly it has worked yet with TCMD/TCC 30.x

What now?

PS: TCC can't find
Code:
C:\Windows\System32\more.com
Code:
more
TCC: Unbekannter Befehl "more"
So it has nothing to do with pipe. But why? Because it's a hardlink or so?

PPS: There seems really a problem with TCC 31.x and external commands.

Code:
type more-test.txt | more
does not work in TCC!
Code:
type more-test.txt | more.com
WORKS in TCC!

Code:
attrib.exe
does not work in TCC!
Code:
attrib
WORKS in TCC!

Code:
cmd
WORKS in TCC!
Code:
cmd.exe
WORKS in TCC!

all are hardlinks ...

PPPS:
Oh, I find something!

Code:
attrib.exe
TCC: (Sys) Das System kann die angegebene Datei nicht finden.
 "D:\_Tests\.exe"
means that the System can't find the file because TCC searched in current path only or at least not in system32!!
Of course attrib.exe exists in system32 folder and a
Code:
c:\Windows\System32\attrib.exe
works in TCC!

Could be the case because my "localized" de-CH Windows 10? However: within CMD this is all NO problem!

Totally confused!
 
Last edited:
I have no problem with MORE.COM. But I see this, which seems odd.

Code:
v:\> which /a attrib
attrib is an internal command
attrib is an external : C:\WINDOWS\system32\attrib.EXE

v:\> attrib.exe
TCC: (Sys) The system cannot find the file specified.
 "V:\.exe"

ATTRIB.EXE runs when a full path is given.

Also odd, the situation seems to be the same with TASKLIST.EXE but I can run it!

Code:
v:\> which /a tasklist
tasklist is an internal command
tasklist is an external : C:\WINDOWS\system32\tasklist.EXE

v:\> tasklist.exe

Image Name                     PID Session Name        Session#    Mem Usage
========================= ======== ================ =========== ============
System Idle Process              0 Services                   0          8 K
 
Maybe also interesting:

Code:
which /a more
more ist ein unbekannter Befehl
which /a more.com
more.com ist verbunden mit : C:\Windows\System32\more.com
1st means "more is an unknown command"; 2nd "more.com is connected with C:\Windows\System32\more.com"

Same behaviour with mode.com (for example).

But all is ok (for example) with CMD:
Code:
which /a cmd
cmd ist ein externer Befehl: C:\Windows\System32\cmd.exe
which /a cmd.exe
cmd.exe ist ein externer Befehl: C:\Windows\System32\cmd.exe
 
HA, you are right with tasklist. WEIRD ;-)

BUT NOW I believe I solved the problem (because your hint above, Vince).

At least in TC 31.x (probably that was necessary too in earlier versions??! I had to enable the option PATHEXT ("use pathext" or so). NOW it works again too here!

A BIG thank you, Vince!
 

Similar threads

Back
Top