1.

Solve : /F use of multiple values in delim?

Answer»

I have a vendor supplied name with MULTIPLE unique separators. (example "RCM_SAR_Form_02-28-2014 14:342854MNB"). I need to parse to proivde a FIXED filename to the next phase. I can not get the delim parameter to accept the mutiple unique separators a , a underscore, a hypen, and a colon). Even if I get that problem to work I am left with how to separate the MM from the last FIELD 322854MNB.

I am a rookie on Dos Command experience but thought this forum might enjoy helping a rookie. I hope when I get the parsed values in variables I be able to build the rename.

Would anyone be willing to share how to code the delim= with multiple values listed.
Also a technique to separate the MM (minute field after the colon) from 2854MNB CHARACTER field at the end.

Thank you in ADVANCE for sharing you skills and experience in this area.
TommyBCode: [Select]for /f "tokens=1-8 delims=_-: " %%I in ("RCM_SAR_Form_02-28-2014 14:342854MNB") do (
echo %%I
echo %%J
echo %%K
echo %%L
echo %%M
echo %%N
echo %%O
echo %%P
)Quote from: tommyb on March 26, 2014, 08:44:22 AM

I am a rookie on Dos Command experience but thought this forum might enjoy helping a rookie.

It's all good fun when we know what the problem is - as it stands we don't know what VARIATION there is in the name format. Are all lines in that exact format?

What do you have to do with the lines, apart from get the minute count?




Discussion

No Comment Found