batch split ; delimited text

April 5, 2011 at 09:03:54
Specs: Windows Vista
how to split the values using the delimeter and loop through each of the values. Like split the following the emails and loop through each one of them.


I want to split in batch file and loop through each one of them.

See More: batch split ; delimited text

Report •

April 5, 2011 at 11:09:51
Not clear what's needed.

Life is too important to be taken seriously.


Report •

April 6, 2011 at 00:44:08
I used the following code but it does not iterate through all items instead it takes only first mailId.
FOR /F "delims=;" %%a IN (";;") DO @ECHO %%a

output is

The desired output is

I think I need to just modify this code in order to make it iterate through all items not just first one.
Any help would be greatly appreciated. Thanks in advance.

Report •

April 6, 2011 at 02:10:33

for %%a in ("%list:;=","%") do echo %%~a

Report •
Related Solutions

Ask Question