this is the first line and this the second here is another and another does it ever end maybe FIRST action: insert ` as first character so it becomes: `this is the first line `and this the second `here is another `and another `does it ever end `maybe SECOND action: replace ` with type nul > so it becomes: type nul > "this is the first line type nul > "and this the second type nul > "here is another type nul > "and another type nul > "does it ever end type nul > "maybe THIRD action: add .txt at the end of each line so it becomes: type nul > "this is the first line.txt" type nul > "and this the second.txt" type nul > "here is another.txt" type nul > "and another.txt" type nul > "does it ever end.txt" type nul > "maybe.txt" Save a batch file, for instance doit.bat Open a command prompt and run doit.bat Finished.