Remove " from the %path% variable

vyne 1 Reputation point
2022-11-05T14:33:17.267+00:00

I tried to add a path variable to my %path% using setx /m and accidentally added a " now none of my apps seem to work with the current %path%. How do i remove the extra " from my path. Below is my output for echo %path%

C:\WINDOWS\system32>echo %path%
C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\dotnet\;C:\Program Files\Git\cmd;C:\Program Files\MySQL\MySQL Shell 8.0\bin\;C:\Users\sa\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\sa\AppData\Local\Programs\Python\Python310\;C:\Users\sa\AppData\Local\Microsoft\WindowsApps;C:\Users\sa\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\sa\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;C:\Program Files\PostgreSQL\15\bin";

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 36,291 Reputation points
    2022-11-05T14:52:26.867+00:00

    Launch the control panel and search for path. Click on the link with the UAC shield icon. Then edit the path variable.

    257437-image.png

    257446-image.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.