Search found 2 matches
- 01 Nov 2012 07:11
- Forum: DOS Batch Forum
- Topic: string concatenation in loop
- Replies: 2
- Views: 9189
Re: string concatenation in loop
Thank you very much !
- 31 Oct 2012 18:07
- Forum: DOS Batch Forum
- Topic: string concatenation in loop
- Replies: 2
- Views: 9189
string concatenation in loop
Hello. I need to concatenate a string in a 'for' loop. Here is my code : set tmp=numbers for /L %%A in (1,1,8) do ( set tmp=%tmp% %%A ) echo %tmp% I would like to read "numbers 1 2 3 4 5 6 7 8" but my script returns "numbers 8". But concatenation outside of the loop works fine. T...