Batch Script - String Concatenation
Advertisements
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.
Example
@echo off SET a = Hello SET b = World SET c=%a% and %b% echo %c%
Output
The above command produces the following output.
Hello and World
batch_script_strings.htm
Advertisements