Search found 1 match
- 10 Apr 2014 13:23
- Forum: DOS Batch Forum
- Topic: Appending the filename to the beginning of each line
- Replies: 1
- Views: 1365
Appending the filename to the beginning of each line
Hi, I have a batch file which searches through a text file for keywords for errors. It uses FINDSTR to do this and then it outputs the problem lines to another text file... Here's the bat file.. findstr /i /n /g:"c:\Users\statrox\WINLC\KEYS_IN1.TXT" "%~DPN1.LOG" >> "C:\Users...