home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.ibm.pc.misc
- Path: 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
-
- 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 |
-