Skip to content

Instantly share code, notes, and snippets.

@mvidaldp
Created January 10, 2021 18:52
Show Gist options
  • Save mvidaldp/3edee159bed68ed2334c92ac68b49778 to your computer and use it in GitHub Desktop.
Save mvidaldp/3edee159bed68ed2334c92ac68b49778 to your computer and use it in GitHub Desktop.
Batch (.bat) script or command to read variable containing ampersands (&)
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