Search found 2 matches

by pendragon
27 Mar 2015 04:02
Forum: DOS Batch Forum
Topic: [SOLVED] FOR /F with 15 tokens not working
Replies: 6
Views: 4222

Re: FOR /F with 15 tokens not working

Hi all, Can't say that I have ever tried declaring the tokens out of order with the TOKENS option. Have you tried putting them in numerical order and then outputting the TOKENS in the order they need to be in. I had thought of it too, refer to my second code snippet Thanks anyway for looking into it...
by pendragon
26 Mar 2015 10:29
Forum: DOS Batch Forum
Topic: [SOLVED] FOR /F with 15 tokens not working
Replies: 6
Views: 4222

[SOLVED] FOR /F with 15 tokens not working

Hi, I need to reorder a set of fields before writing them into a file; for this, I'm using the following FOR /F loop: for /f "tokens=1,7,4,5,6,9,11,10,15,8,26,34,52,28,27 delims=," %%A in (%input%) do ( echo.%%A,%%B,%%C,%%D,%%E,%%F,%%G,%%H,%%I,%%J,%%K,%%L,%%M,%%N,%%O>>%report% ) But, for a...