@echo off for %%A in (This is a sample collection) do ( echo %%A )