Compilation for ESP32 fails: '"cmd": executable file not found in %PATH%'

Hello,
I can't understand those messages I found when I try to do the CameraWebServer with a UNO. If somebody can help me.
FQBN: esp32:esp32:esp32cam:CPUFreq=40
Using board 'esp32cam' from platform in folder: C:\Users\DELL\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.7
Using core 'esp32' from platform in folder: C:\Users\DELL\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.7

cmd /c if exist "C:\Users\DELL\Documents\Arduino\CameraWebServer_copy_20260213191003\partitions.csv" COPY /y "C:\Users\DELL\Documents\Arduino\CameraWebServer_copy_20260213191003\partitions.csv" "C:\Users\DELL\AppData\Local\arduino\sketches\D8825EAEAB8FDC2A166420E03A4FC37B\partitions.csv"
exec: "cmd": executable file not found in %PATH%

Compilation error: exec: "cmd": executable file not found in %PATH%

Hi @stratofender.

The ESP32 boards platform must have access to the Windows command processor cmd.exe. This error indicates that you have a strange configuration on your computer that somehow does not give access to this essential tool which is built in to the Windows installation.

Please do this and then comment here to tell me what you find:

  1. Right click the "Start" icon on the left side of the Windows taskbar
  2. Select "System" from the menu.
  3. Click the "Advanced system settings" link you find under the "Related Settings" section of the "Settings" window.
  4. If you get a "User Account Control" dialog, click the Yes button.
  5. In the "System Properties" window, select the "Advanced" tab.
  6. Click the Environment Variables button.

An "Environment Variables" dialog will now open. Look at the list under the "System variables" section of the dialog.

Do you see a variable on the list named "ComSpec"?

Hello,
Thank's for the reply.
I find just now the ComSpec.

Ok then after that what I have to do.

Ok,

I just arrived to resolve the problem. I remember I have encountred it a few years before but I don't remember the way to resolve it. I think (I'm now more than 70th) it could be interesting to have a page wich resume that kind of "error messages" even if they are du from ourselves computers. Many thanks to the community

Thanks for taking the time to post an update. I'm glad you were able to resolve the problem.

Regards, Per