This project has moved and is read-only. For the latest updates, please go here.

Passing in multiple files to the X12parser

Nov 7, 2012 at 4:54 PM

Forgive me if this has been covered else where and I missed it. 

What I am trying to do is take an 835 x12 file, unbundle it into individual x12 files per loop, and then generate an xml file for each one of those unbundled files. Am I able in some way to do that? When I try running the x12parser with a wildcard it crashes on me.

Nov 7, 2012 at 5:34 PM

Are you using the UnbundleX12.exe?  Right now it expects exactly one filename, but I can change it in the next release to accept file patterns.

Nov 7, 2012 at 5:43 PM

yup, i run the unbudlex12.exe on the x12 file we get and it outputs a single file for each loop just fine. so now i have 3000+ .txt files that i would like to convert to xml files. i'm just wondering if there is a way i could easily script that. it's been a few years since i even opened visual studio, so i was hoping i could pass an argument to the x12parser like "x12parser.exe "c:\outputfiles\*.*" "c\convertedxmlfiles\" using a *  to pick up all the files that were created during the unbundlex12 process.


Nov 7, 2012 at 6:39 PM

disregard. i wrote a batch script to do it.

for /f %%a IN ('dir c:\835\output /b *.txt') do call c:\x12parser\x12parser.exe c:\835\output\%%a