Created
January 10, 2021 18:52
-
-
Save mvidaldp/3edee159bed68ed2334c92ac68b49778 to your computer and use it in GitHub Desktop.
Batch (.bat) script or command to read variable containing ampersands (&)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set "var=ABC&DEF&GHI&012" | |
echo %var:&=^&% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment