When I test and compile - link a sketch it runs and executes normally.
If I save, reopen and recompile it fails giving:
FQBN: esp32:esp32:nodemcu-32s
Using board 'nodemcu-32s' from platform in folder: C:\Users\horac\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6
Using core 'esp32' from platform in folder: C:\Users\horac\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6
cmd /c if exist "D:\\AsusCloud\\Electronica\\Arduino\\Development\\R&D\\testedSnippets\\RNT-01-ESP_TO_DATABASE_Test03\\partitions.csv" copy /y "D:\\AsusCloud\\Electronica\\Arduino\\Development\\R&D\\testedSnippets\\RNT-01-ESP_TO_DATABASE_Test03\\partitions.csv" "C:\\Users\\horac\\AppData\\Local\\Temp\\arduino\\sketches\\E4EC290BD0231E8629480313EF122E16\\partitions.csv"
& was unexpected at this time.
exit status 1
Compilation error: exit status 1
Curiosity: I use R&D also for Arduino Uno, and never got this ...
The compile or link syntax are perhaps different, and Arduino Uno does not pass thru that "copy"
Rather it is that such escaping is not needed when using the Uno because its boards platform does not use the Windows command interpreter.
The ESP32 platform is unique when compared to the "Arduino AVR Boards" platform in that it uses the Windows command interpreter to gain logic capabilities that are not provided by the Arduino boards platform framework itself: