1@echo off
2echo ------------ Testing for1 ------------
3echo --- plain FOR with multiple lines
4for %%i in (A
5B
6C) do echo %%i
7echo ------------ Testing for2 ------------
8echo --- plain FOR with lines and spaces
9for %%i in (D
10 E
11 F) do echo %%i
12echo ------------ Testing for3 ------------
13echo --- plain FOR with multiple lines and commas
14for %%i in (G,
15H,
16I
17) do echo %%i
18echo ------------ Testing for4 ------------
19echo --- plain FOR with multiple lines and %%I
20for %%i in (J
21 K
22 L) do echo %%I
23echo ------------ Testing for5 ------------
24echo --- plain FOR with multiple lines and %%j
25for %%i in (M,
26N,
27O
28) do echo %%j
29echo ------------ End of Testing ------------
30echo --- Testing ends here
31