I'm trying to run a firebeetle with Arduino 2, it originally had a problem of cmd not found in %PATH%, I figured adding cmd.exe to my arduino IDE folder would help, from the error I could see that Arduino IDE does recognize the cmd.exe file but it can't read it. Can anyone help?
I've moved your topic to the dedicated IDE 2.x section of the forum.
The usual way is to add the directory where cmd.exe lives to the path. Look around in these search results: windows add cmd.exe to path - Google Search to find a solution for your version.
Please post the error output; please use code tags.
Note:
Currently not a Windows user so can't help further.
Hi @ayokrissy.
This error indicates that you have some unusual configuration of Windows that causes the path to cmd.exe
to not be in your system Path
environment variable. You can fix the problem by adding that path to the environment variable.
I'll provide instructions you can follow to do that:
- Right click the "Start" icon on the left side of the Windows taskbar
- Select "System" from the menu.
The "Settings" window will open. - Click the "Advanced system settings" link you find under the "Related Links" (or "Related Settings" if you are using Windows 10) section of the "Settings" window.
- If you get a "User Account Control" dialog, click the Yes button.
- In the "System Properties" window, select the "Advanced" tab.
- Click the Environment Variables button.
An "Environment Variables" dialog will open. - Select the "Path" variable from under the "System variables" section of the dialog "Environment Variables" dialog.
An "Edit environment variable" dialog will open. - Click the New button in the "Edit environment variable" dialog.
- Type
%SystemRoot%\system32
- Click the OK button in the "Edit environment variable" dialog.
- Click the OK button in the "Environment Variables" dialog.
- Restart Arduino IDE if it is running.
Now try compiling or uploading to your ESP32 board again. Hopefully the "exec: "cmd": executable file not found in %PATH%
" error will no longer occur.
Please let me know if you have any questions or problems while following those instructions.
That is correct. This is a security feature of Arduino IDE (or more precisely, of the system it uses to invoke compilation and upload commands via the Windows command interpreter).
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.