1.

Solve : How to connect two string with a line break???

Answer»

@echo off
set str1=this is LINE 1
set str2=this is line 2

rem how to write FOLLOWING code???
set STR3= ??

echo %str3%
pause



the result is:
this is line1
this is line2

Code: [Select]@echo off
set str1=this is line 1
set str2=this is line 2
echo %str1% && echo %str2%

By concatenating the two echo commands, you effectively insert the carriage RETURN line feed characters.

thank you very much!



Discussion

No Comment Found