W
Walter Briscoe
%windir%\system32\more.com pages its input to the screen.
If the output is a file, the input is copied through without pagination.
I have just discovered that this mechanism changes after 64K lines.
more then prompts at every succeeding line.
I fell over this by accident on redirecting a .BAT to a file.
(script.bat > file). The script seized after about 6Mb.
I looked at the output file and found the last line was a more prompt.
I supplied a return to script.bat and it immediately asked for another.
This behavior applies to W2K SP3 and XP without service packs.
It looks like a bug to me.
Does it apply in the latest versions?
Demonstration: The following uses the XP more.com
C:\watcom) type source.dir | e:\windows\system32\more.com > output
The process tried to write to a nonexistent pipe.
^C
C:\watcom) tail output
2004/01/05 12:31 1,620 C:\watcom\source\bld\f77\lg86\obj386\fcstruct.obj
2004/01/05 12:31 4,664 C:\watcom\source\bld\f77\lg86\obj386\fcsubpgm.obj
-- More -- 2004/01/08 12:31 20,125 C:\watcom\source\bld\f77\lg86\obj386\fctab.obj
-- More -- 2004/01/05 12:31 3,938 C:\watcom\source\bld\f77\lg86\obj386\fcuchk.obj
-- More -- 2004/01/05 12:31 1,154 C:\watcom\source\bld\f77\lg86\obj386\fdutil.obj
-- More -- 2004/01/05 12:31 1,308 C:\watcom\source\bld\f77\lg86\obj386\fexit.obj
-- More -- 2004/01/05 12:31 1,041 C:\watcom\source\bld\f77\lg86\obj386\fgetcmd.obj
-- More -- 2004/01/05 12:31 1,320 C:\watcom\source\bld\f77\lg86\obj386\fgetenv.obj
-- More -- 2004/01/05 12:31 3,597 C:\watcom\source\bld\f77\lg86\obj386\fgnobj.obj
-- More --
C:\watcom) :: I supplied return seven times
C:\watcom) db e:\windows\system32\more.com
2001/08/23 12:00 15,872 e:\windows\system32\more.com
C:\watcom)
If the output is a file, the input is copied through without pagination.
I have just discovered that this mechanism changes after 64K lines.
more then prompts at every succeeding line.
I fell over this by accident on redirecting a .BAT to a file.
(script.bat > file). The script seized after about 6Mb.
I looked at the output file and found the last line was a more prompt.
I supplied a return to script.bat and it immediately asked for another.
This behavior applies to W2K SP3 and XP without service packs.
It looks like a bug to me.
Does it apply in the latest versions?
Demonstration: The following uses the XP more.com
C:\watcom) type source.dir | e:\windows\system32\more.com > output
The process tried to write to a nonexistent pipe.
^C
C:\watcom) tail output
2004/01/05 12:31 1,620 C:\watcom\source\bld\f77\lg86\obj386\fcstruct.obj
2004/01/05 12:31 4,664 C:\watcom\source\bld\f77\lg86\obj386\fcsubpgm.obj
-- More -- 2004/01/08 12:31 20,125 C:\watcom\source\bld\f77\lg86\obj386\fctab.obj
-- More -- 2004/01/05 12:31 3,938 C:\watcom\source\bld\f77\lg86\obj386\fcuchk.obj
-- More -- 2004/01/05 12:31 1,154 C:\watcom\source\bld\f77\lg86\obj386\fdutil.obj
-- More -- 2004/01/05 12:31 1,308 C:\watcom\source\bld\f77\lg86\obj386\fexit.obj
-- More -- 2004/01/05 12:31 1,041 C:\watcom\source\bld\f77\lg86\obj386\fgetcmd.obj
-- More -- 2004/01/05 12:31 1,320 C:\watcom\source\bld\f77\lg86\obj386\fgetenv.obj
-- More -- 2004/01/05 12:31 3,597 C:\watcom\source\bld\f77\lg86\obj386\fgnobj.obj
-- More --
C:\watcom) :: I supplied return seven times
C:\watcom) db e:\windows\system32\more.com
2001/08/23 12:00 15,872 e:\windows\system32\more.com
C:\watcom)