diff --git a/devTools/concatFiles.bat b/devTools/concatFiles.bat
index dfbe2df9988cd8fb95aabda86c3069c4f0e6e264..38617bc125293b4302ad631aaf8f4d250304cbea 100644
--- a/devTools/concatFiles.bat
+++ b/devTools/concatFiles.bat
@@ -2,7 +2,7 @@
 :: Concatenates files from dir %1 specified with wildcard %2 and outputs result to %3
 
 :: temporary codepage change to avoid mojibake
-FOR /f "tokens=2 delims=:." %%x IN ('CHCP') DO SET _cp=%%x
+FOR /f "tokens=2 delims=:." %%x IN ('CHCP') DO SET _CP=%%x
 CHCP 65001 > NUL
 
 :: TODO Proper temp file instead of bin\list.txt