arquivo em lote lidar com E comercial (&) no nome da pasta
Arquivo em lote abaixo:
@echo off
set filelocation=C:\Users\myself\Documents\This&That
cd %filelocation%
echo %filelocation%
pause
dê a seguinte saída:
'That' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
C:\Users\myself\Documents\This
Press any key to continue . . .
Considerando que não posso alterar o nome da pasta, como manejo o "&"