🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#10262
From: Edward Henigin
Date: Sat, 12 Dec 1992 01:07
29 lines
1281 bytes
In <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 allow me to type 

>more file.txt

>and have the batch file execute

>type file.txt |more

>for me?  What kind of variable would I put into more.bat to do this?

If you're just trying to make like a macro, don't bother.  Just do

more < file.txt

and that will do what you want.

If it's in a batch file, do 

more < %1

and %1 will be taken as the first word in the command line of the batch
file.

--
|ed -- gilligan@camelot.bradley.edu                                          |
|   -- gilligan@cs1.bradley.edu     | If you want a friend, feed any animal. |
|    Are you deviant?  Probably.    |           -Jane's Addiction            |
Technical Details
Message-ID: <gilligan.724122440@cs1.bradley.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!uwm.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!cs1!gilligan
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!wupost!uwm.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!cs1!gilligan
From: gilligan@cs1.bradley.edu (Edward Henigin)
Subject: Re: How to create a "more" batch file?
Message-ID: <gilligan.724122440@cs1.bradley.edu>
Sender: news@bradley.bradley.edu
Organization: Bradley University
References: <1992Dec11.235700.19707@mnemosyne.cs.du.edu>
Distribution: na
Date: 12 Dec 92 01:07:20 GMT
Lines: 29