General discussion

  • Creator
    Topic
  • #2076831

    FORM FEED in a batch file

    Locked

    by henry.lin ·

    How can I print two text files on two seperate pages when I run a DOS base batch file? In other words, how to insert a command for FORM FEED in a batch file. I have a HP LaserJet 6L attached to my LPT1 port.

All Comments

  • Author
    Replies
    • #3785534

      FORM FEED in a batch file

      by >@ >@ gone fishing @< @< ·

      In reply to FORM FEED in a batch file

      I’m not sure of the exact syntax for FORM FEEDING, but you could try and use 2 batch files.Place the first print command for the first text file in batch file 1, end this batch file by calling a seperate batch file and running the print command again. Giving enough of a wait period for the printer to feed the paper out itself.

    • #3785488

      FORM FEED in a batch file

      by pvp ·

      In reply to FORM FEED in a batch file

      You should be able to:

      echo ^L >lpt1:

      in your batch file between the files to print.

      That’s Ctrl-L (1 char).

      • #3787713

        FORM FEED in a batch file

        by henry.lin ·

        In reply to FORM FEED in a batch file

        Thank you for the answer. I did try but got “L” between the two files on the hardcopy.

      • #3786047

        FORM FEED in a batch file

        by henry.lin ·

        In reply to FORM FEED in a batch file

        Thank you for the answer. I did try but got “L” between the two files on the hardcopy. In other words, DOS cannot recognize character ^.

    • #3787689

      FORM FEED in a batch file

      by tmaclennan ·

      In reply to FORM FEED in a batch file

      Copy one.txt lpt1:
      copy two.txt lpt1:

    • #3787848

      FORM FEED in a batch file

      by pvp ·

      In reply to FORM FEED in a batch file

      If you got an “L” out, you typed Ctrl-L wrong!

    • #3785956

      FORM FEED in a batch file

      by johnm ·

      In reply to FORM FEED in a batch file

      If you are still doing a lot with DOS batch files, hunt around for an old copy of DOS Batch File Power by Kris Jamsa, published by SAMS. The FORMFEED.COM file will solve your problem and there are a lot of other batch file solutions in there. For the short term, there were instructions in the August 1991 issue of PC Computing for creating a SNDPRN.COM program to send control characters to the printer. SENDPRN 12 would give a Form Feed. If you have a fax number, I can send the page – typing 17 lines of hex numbers without error isn’t my forte.

    • #3785896

      FORM FEED in a batch file

      by henry.lin ·

      In reply to FORM FEED in a batch file

      This question was closed by the author

Viewing 5 reply threads