When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
In a forum reply here, click on the reply field.
Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
Press "Ctrl + V". This will paste the error between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
If the text exceeds the forum's 9000 character limit, save it to a .txt file and post it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link.
Check the box next to "Show verbose output during: > compilation
Click "OK"
Sketch > Verify/Compile
After the compilation fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
In a forum reply here, click on the reply field.
Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
Press "Ctrl + V". This will paste the compilation output between the code tags.
Move the cursor outside of the code tags before you add any additional text to your reply.
If the length of the output exceeds the forum's 9000 character limit, save it in a .txt file and post it here as an attachment. If you click the "Reply" button you'll see the "Attachments and other options" link.
artsiha:
there is no such error message if I compile for instance to arduino uno board
Yes, this is specific to the ESP32 package.
Note this is not about arduino.exe, it's about cmd not being found in %PATH%. cmd is under C:\Windows\system32. Make sure that folder is in your path.
I see you are using the development version of ESP32 core for Arduino. Note that is intended to be used only for developers and beta testers. The reason is the development version is more likely to have bugs. For normal usage, I recommend using the Boards Manager installation: https://github.com/espressif/arduino-esp32/blob/master/docs/arduino-ide/boards_manager.md
That is essentially the same installation method described at the link I provided in my previous reply. The only difference is that tutorial is using an outdated Boards Manager URL:
You don't need to do anything else from the instructions I provided, because you already did it all by following that tutorial.
artsiha:
and it works fine !
The reason the Boards Manager installation fixed your "exec: "cmd": executable file not found in %PATH%" error is because it installs the 1.0.4 release, which was before they started using cmd. The error will come back after they do the next release and you update to it. So if you don't want to update your path now, keep the fix I mentioned above in mind to try if the error comes back after the next update.