rem this batch file will read each file and look for rem filename, chapter, section, and compiler and construct rem new header which is aligned properly rem then it will construct the proghdrs.lst file from the rem current files rem then printout the proghdrs.lst file to the screen del proghdrs.lst for %%f in (*.c *.cpp *.h) do proghdrs %%f type proghdrs.lst