🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.misc
Article #10281

Re: How to create a "more" batch file?

#10281
From: Denis McKeon
Date: Sun, 13 Dec 1992 04:31
24 lines
1044 bytes
In article <1992Dec11.235700.19707@mnemosyne.cs.du.edu> mrosen@nyx.cs.du.edu (Michael Rosen) writes:
>Is there a way I can write a batch file that will ... 
>...
>type file.txt |more

At the risk of feeding a how-many-ways-are-there-to ... thread,
( "create a double space-ing filter in Unix" was my favorite )
here is one way, with no error checking and barely any prompting.

    @echo off
    :loop
	more < %1
	shift
	if %1.==. goto quit
	echo next file: %1
	pause > nul:
	goto loop
    :quit

--
Denis McKeon
galway@chtm.eece.unm.edu

QED: Quit and Eat Dinner
Technical Details
Message-ID: <d4#rkmk@lynx.unm.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!lynx!news
References: <1992Dec11.235700.19707@mnemosyne.cs.du.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.ibm.pc.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!umn.edu!lynx!news
From: galway@chtm.eece.unm.edu (Denis McKeon)
Subject: Re: How to create a "more" batch file?
Message-ID: <d4#rkmk@lynx.unm.edu>
Date: Sun, 13 Dec 92 04:31:04 GMT
Organization: Connemara - Computing for People
References: <1992Dec11.235700.19707@mnemosyne.cs.du.edu>
X-Mailer: Mail User's Shell (7.0.1 12/13/89)
Bcc: mrosen@nyx.cs.du.edu
Status: OR
Lines: 24