From your current code it seems like you just want to display the whole contents of txt1.txt.
If that's the case, there is no need to use echo in a loop, you can just use the "type" command.
Search found 2 matches
- 20 Apr 2019 06:40
- Forum: DOS Batch Forum
- Topic: Some content of text file lost when printing to screen
- Replies: 17
- Views: 22953
- 16 Jun 2017 12:27
- Forum: DOS Batch Forum
- Topic: Batch file command to delete all text after certain word
- Replies: 4
- Views: 6721
Re: Batch file command to delete all text after certain word
Hello there .o/ Do some restrictions such as "I cannot use any exe that doesn't ship with Windows" apply? If not, I'd just use a win32 port of the sed command (which you can get from here: m ). You could use it like so: type your_input_file | sed s/"^IMAD:.*"/"IMAD:"/ >...