How do I escape ampersands in batch files? October 26, 2022 by Tarik & is used to separate commands. Therefore you can use ^ to escape the &.