Discussion Locked
0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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.
13 replies
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.
by pvp
You should be able to:
echo ^L >lpt1:
in your batch file between the files to print.
That's Ctrl-L (1 char).
by tmaclennan
Copy one.txt lpt1:
copy two.txt lpt1:
by henry.lin
Poster rated this answer
by johnm
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.
by henry.lin
Poster rated this answer
by henry.lin
This question was closed by the author
This discussion is closed to new replies.
Trending Desktop posts
Sort by Trending
0 helpful
2 replies
Question
Floppy drive wont work on my 486
0 helpful
1 reply
Discussion
How to make light speed agent go away
0 helpful
4 replies
Discussion Locked
Ryzen 7 7700
0 helpful
2 replies
Question Locked
Issue fully resetting my PC
0 helpful
4 replies