Search found 1 match
- 07 Aug 2012 15:46
- Forum: DOS Batch Forum
- Topic: what is wrong with that code? [SOLVED]
- Replies: 18
- Views: 10947
Re: what is wrong with that code? [SOLVED]
Here you are, this creates the two input files and you can test it. @echo off ( echo abc echo def echo ghi )>file1.txt ( echo abc123.txt echo def123.txt echo ghi123.txt )>file2.txt setlocal DisableDelayedExpansion < file2.txt ( for /F "delims=" %%a in (file1.txt) do ( set file2Line= set /...