Search code examples
windowspathenvironment-variablessystem-variable

Certain string in Windows PATH causing error


I am adding this string C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5\ to my windows 10 environmental variable PATH. This caused problem to the PATH. I believe the root cause is the character & in the string. How can I add the string successfully to the windows PATH?


Solution

  • Try escaping the ampersand (&) with a carrot (^).

    C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 ^& MySQL Utilities 1.5