General discussion
-
CreatorTopic
-
August 30, 2000 at 8:38 am #2076831
FORM FEED in a batch file
Lockedby henry.lin · about 23 years, 7 months ago
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.
Topic is locked -
CreatorTopic
All Comments
-
AuthorReplies
-
-
August 30, 2000 at 12:52 pm #3785534
FORM FEED in a batch file
by >@ >@ gone fishing @< @< · about 23 years, 7 months ago
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.
-
August 31, 2000 at 1:31 am #3787712
FORM FEED in a batch file
by henry.lin · about 23 years, 7 months ago
In reply to FORM FEED in a batch file
Sorry, it will do the same thing.
-
September 1, 2000 at 1:44 am #3786046
FORM FEED in a batch file
by henry.lin · about 23 years, 7 months ago
In reply to FORM FEED in a batch file
Sorry, I did try but it will do the same thing.
-
-
August 30, 2000 at 3:55 pm #3785488
FORM FEED in a batch file
by pvp · about 23 years, 7 months ago
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).
-
August 31, 2000 at 1:31 am #3787713
FORM FEED in a batch file
by henry.lin · about 23 years, 7 months ago
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.
-
September 1, 2000 at 1:44 am #3786047
FORM FEED in a batch file
by henry.lin · about 23 years, 7 months ago
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 ^.
-
-
August 31, 2000 at 2:31 am #3787689
FORM FEED in a batch file
by tmaclennan · about 23 years, 7 months ago
In reply to FORM FEED in a batch file
Copy one.txt lpt1:
copy two.txt lpt1:-
September 1, 2000 at 7:33 am #3785897
FORM FEED in a batch file
by henry.lin · about 23 years, 7 months ago
In reply to FORM FEED in a batch file
Poster rated this answer
-
-
August 31, 2000 at 7:14 am #3787848
FORM FEED in a batch file
by pvp · about 23 years, 7 months ago
In reply to FORM FEED in a batch file
If you got an “L” out, you typed Ctrl-L wrong!
-
September 1, 2000 at 7:33 am #3785898
FORM FEED in a batch file
by henry.lin · about 23 years, 7 months ago
In reply to FORM FEED in a batch file
Poster rated this answer
-
-
September 1, 2000 at 4:45 am #3785956
FORM FEED in a batch file
by johnm · about 23 years, 7 months ago
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.
-
September 1, 2000 at 7:33 am #3785899
FORM FEED in a batch file
by henry.lin · about 23 years, 7 months ago
In reply to FORM FEED in a batch file
Poster rated this answer
-
-
September 1, 2000 at 7:33 am #3785896
FORM FEED in a batch file
by henry.lin · about 23 years, 7 months ago
In reply to FORM FEED in a batch file
This question was closed by the author
-
-
AuthorReplies