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
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
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!
Summary: I have problem writing this batch file to read a text file. Been using the for /f command but doesn't seem to be working. This is a sample of the text file. HLU/ALU Pairs: HLU Number ALU Number...
Summary: I have this text file that is one long string with no carriage return. What I want to do is a line break or carriage return whenever it finds the text string "~NM1" Here is what I have so far. > ...
Summary: Mechanix2Go, A better example than the one above would be: ---%temp%\~atempfile.tmp VARIABLES Date=%date% Time=%time% Name=%stringName% --- I want to store variables, from batch file execution, into a...