Computing.Net > Forums > Programming > Batch Script Reformat EDI Text File

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch Script Reformat EDI Text File

Reply to Message Icon

Name: cryptico
Date: January 7, 2009 at 10:42:56 Pacific
OS: Windows Vista 64bit
CPU/Ram: 4 Gig DDR 1066
Product: Corsair / Dominator
Subcategory: Batch
Comment:

I have these EDI files that I need to reformat from a single line to line per segment format. Normally, I use Textpad to reformat the file. I replace the "~" with a new line this will break out each new segment onto its own line beneath the previous segment. For instance, the following line: ~LIN**EN*9780060535681***TP*06*ZZ*HARDBACK BOOKS***ZZ*HARDCOVER FICTION*****ZZ*421100~PO1******B7*11111111~G53*003~DTM*007*20090107~PID*F****SUPERFOODS RX


will look like this after I reformat it:

LIN**EN*9780060535681***TP*06*ZZ*HARDBACK BOOKS***ZZ*HARDCOVER FICTION*****ZZ*421100
PO1******B7*11111111
G53*003
DTM*007*20090107
PID*F****SUPERFOODS RX

I need a batch file or script that I can run in a folder that will take all of my files ending in ".edi" and reformat them as described above. Can anyone help. Thanks!

Will V.



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


batch file basic C++ question!



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch Script Reformat EDI Text File

batch script to parse text file www.computing.net/answers/programming/batch-script-to-parse-text-file/16793.html

batch script for parsing text file www.computing.net/answers/programming/batch-script-for-parsing-text-file/18755.html

Batch script: Help with FOR file IO www.computing.net/answers/programming/batch-script-help-with-for-file-io/14915.html