Just another Perl shrine | |
PerlMonks |
[OT] Invoking Perl via batchfile: ampersand in PATH [Solved]by Athanasius (Archbishop) |
on Nov 02, 2015 at 09:01 UTC ( [id://1146683]=perlquestion: print w/replies, xml ) | Need Help?? |
Athanasius has asked for the wisdom of the Perl Monks concerning the following question: I run a portable edition of Strawberry Perl (under Windows 8.1) invoked by the batch file portableshell.bat which contains the following line:
This has been working well. However, after updating MySQL and installing MySQL Workbench, I now have a directory:
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,
Back to
Seekers of Perl Wisdom
|
|