General discussion

Locked

FORM FEED in a batch file

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.

This conversation is currently closed to new comments.

13 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

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.

Collapse -

FORM FEED in a batch file

by henry.lin In reply to FORM FEED in a batch file

Sorry, it will do the same thing.

Collapse -

FORM FEED in a batch file

by henry.lin In reply to FORM FEED in a batch file

Sorry, I did try but it will do the same thing.

Collapse -

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).

Collapse -

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.

Collapse -

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 ^.

Collapse -

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:

Collapse -

FORM FEED in a batch file

by henry.lin In reply to FORM FEED in a batch file

Poster rated this answer

Collapse -

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!

Collapse -

FORM FEED in a batch file

by henry.lin In reply to FORM FEED in a batch file

Poster rated this answer

Back to Desktop Forum
13 total posts (Page 1 of 2)   01 | 02   Next

Hardware Forums