Need to copy a file without specific records

October 10, 2018 at 17:20:40
Specs: Windows 7
I need to produce a copy of an error file so it can be sent to an outside agency.

The original file may contain zero or more records that have a specific 3 character error code in positions 4-6.

Records containing the error code, AND the record immediately "above" it, MUST NOT BE INCLUDED IN THE OUTPUT FILE.

How can I accomplish this with a Windows batch script?

Thanks in advance for any assistance you can provide.

message edited by K9-Guy


See More: Need to copy a file without specific records

Reply ↓  Report •
Related Solutions


Ask Question