to insert page breaks by design in a text file? The next step would be to open the
text file in a word processor and the page breaks would be there. I don't know if the
formfeed in the text file would translate to a page break in the word processor.
I have Windows 7 and MS Word.
My project involves writing a formatted report from a batch file into, what I used to call
in the work world, a disjoint report. The plan is to view the report, with pauses between each
page, in a DOS window, now working, with the option to write to a text file for import into a
word processor. Columns would be aligned in Word using a fixed-width font.
Strictly a just-for-fun type or project.
Code: Select all
For /L %%n In (1 1 5) Do Echo %%n>>temp.txt
Rem add a formfeed character
For /L %%n In (6 1 10) Do Echo %%n>>temp.txt