:: interactive-combine-hdr-chr.cmd @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION :: Ask for source file name ECHO Example part file name: ECHO file1_hdr.txt ECHO ^^^^^^^^^^ SET /P partname="Enter the name of the part files: " :: Ask for combined file name SET /P filename="Enter the name of the combined file: " :: Combine files to entered file name, .txt appended TYPE "%partname%_hdr.txt" > "%filename%.txt" TYPE "%partname%_chr.txt" >> "%filename%.txt" ENDLOCAL EXIT