- You can permanently add a user PATH to PATH with the setx command:
setx PATH "C:\flutter\bin;%PATH%"
- Add the /M flag if you want to set the system PATH instead of the user PATH.
You need run the cmd Run as Administrator
setx /M PATH "C:\flutter\bin;%PATH%"