home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / ibm / pc / misc / 15711 < prev    next >
Encoding:
Text File  |  1992-12-11  |  1.2 KB  |  42 lines

  1. Newsgroups: comp.sys.ibm.pc.misc
  2. Path: sparky!uunet!spool.mu.edu!wupost!uwm.edu!ux1.cso.uiuc.edu!bradley.bradley.edu!cs1!gilligan
  3. From: gilligan@cs1.bradley.edu (Edward Henigin)
  4. Subject: Re: How to create a "more" batch file?
  5. Message-ID: <gilligan.724122440@cs1.bradley.edu>
  6. Sender: news@bradley.bradley.edu
  7. Organization: Bradley University
  8. References: <1992Dec11.235700.19707@mnemosyne.cs.du.edu>
  9. Distribution: na
  10. Date: 12 Dec 92 01:07:20 GMT
  11. Lines: 29
  12.  
  13. In <1992Dec11.235700.19707@mnemosyne.cs.du.edu> mrosen@nyx.cs.du.edu (Michael Rosen) writes:
  14.  
  15. >Is there a way I can write a batch file that will allow me to type 
  16.  
  17. >more file.txt
  18.  
  19. >and have the batch file execute
  20.  
  21. >type file.txt |more
  22.  
  23. >for me?  What kind of variable would I put into more.bat to do this?
  24.  
  25. If you're just trying to make like a macro, don't bother.  Just do
  26.  
  27. more < file.txt
  28.  
  29. and that will do what you want.
  30.  
  31. If it's in a batch file, do 
  32.  
  33. more < %1
  34.  
  35. and %1 will be taken as the first word in the command line of the batch
  36. file.
  37.  
  38. --
  39. |ed -- gilligan@camelot.bradley.edu                                          |
  40. |   -- gilligan@cs1.bradley.edu     | If you want a friend, feed any animal. |
  41. |    Are you deviant?  Probably.    |           -Jane's Addiction            |
  42.