I run a portable edition of Strawberry Perl (under Windows 8.1) invoked by the batch file portableshell.bat which contains the following line:
set PATH=%drivep%\perl\site\bin;%drivep%\perl\bin;%drivep%\c\bin;%PATH +%
This has been working well. However, after updating MySQL and installing MySQL Workbench, I now have a directory:
C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 & MySQL Utilities 1.5
which has also been added to the PATH environment variable. Now, when I open a normal Windows command prompt, the PATH is set correctly; but when I run portableshell.bat the ampersand in the directory name is interpreted as a “special character” and the path is truncated.
Google search has led me to the following suggested fixes:
I’ve tried these in various permutations, but so far nothing works. :-(
Yes, I could rename the directory, but I’m afraid this will break, e.g., MySQL Notifier.
So, is there an equivalent of quotemeta for Windows batch files? Or another workaround?
Thanks,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |