Search found 2 matches

by rojouz
19 Jan 2015 22:56
Forum: DOS Batch Forum
Topic: Why does a list with & without spaces print differently?
Replies: 3
Views: 1935

Re: Why does a list with & without spaces print differently?

To Squashman: Thanks for the response. If a delimeter causes items in a list to be printed separately, and also apparently for each item to be processed separately, why does the following code work: @ECHO OFF &SETLOCAL ENABLEDELAYEDEXPANSION SET "text=This is my zero text example" SET ...
by rojouz
17 Jan 2015 19:23
Forum: DOS Batch Forum
Topic: Why does a list with & without spaces print differently?
Replies: 3
Views: 1935

Why does a list with & without spaces print differently?

I am looking at the following example listed here: m (I don't have enough points to ask my question there via a comment). Now, for the first code example mentioned there of: set list=A B C D and the slightly modified code of: (for %%a in (%list%) do ( echo %%a )) That prints A B C D each on a line b...