Windows g++;即使我的路径变量已更新,也无法识别

Windows g++;即使我的路径变量已更新,也无法识别,windows,path,Windows,Path,我在这里束手无策。这是我在cmd中键入“echo%PATH%”时得到的结果: C:\Users\user>g++ 'g++' is not recognized as an internal or external command, operable program or batch file. C:\Users\user>echo %PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\S

我在这里束手无策。这是我在cmd中键入“echo%PATH%”时得到的结果:

C:\Users\user>g++
'g++' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\user>echo %PATH%
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\Wind
owsPowerShell\v1.0\; C:\MinGW\bin\;C:\Users\user\AppData\Local\Programs\Python\P
ython39\Scripts\;C:\Users\user\AppData\Local\Programs\Python\Python39\;C:\Users\
user\AppData\Local\Programs\Microsoft VS Code\bin; C:\MinGW\bin\;

C:\Users\user>
我什么都试过了。当然,我正在使用新的cmd实例进行检查。重新启动不起作用。我可以转到C:/mingw/bin目录,在那里打开g++并使用cmd。我尝试了PATH变量的所有不同格式:“C:”部分、结尾分号、结尾反斜杠。没有排列的工作。您可以在上面的输出中看到,我的用户和系统路径都有正确的g++目录

更新:好的,我只是试着一次只更新一个用户/系统路径。我现在收到“此应用程序无法在你的电脑上运行”对话框(windows 8.1),并返回“拒绝访问”。但是当我以管理员的身份运行cmd时,它就工作了! 但是VScode仍然返回

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Cannot create temporary file in C:\Users\user\AppData\Local\Temp; C:\MinGW\bin\g++.exe\: Invalid argument

现在

为什么在
之间有空格
C:
?我将修复此问题,然后重试。还是不行