every day I get files from a company directory and I'm automating this ... but the directory name contains a special character "&" and the scripts I have assembled do not recognize...
@Echo Off
Set _Source=C:\Users\Rafae\Desktop\test&test
Set _Dest=C:\Users\Rafae\Desktop\study
Forfiles /D +0 /P %_Source% /C "cmd /c XCopy %_Dest%"
pause
Error: 'test' is not recognized as an internal command or external, an operable program or a batch file. ERROR: The specified directory does not exist. Press any key to continue. . .
Is there a way to make cmd recognize a folder that contains "&" in the name?