You can use the set operator to concatenate two strings or a string and a character, or two characters. Following is a simple example which shows how to use string concatenation.
@echo off SET a = Hello SET b = World SET c=%a% and %b% echo %c%
The above command produces the following output.
Hello and World