I want to modify the User Path variable, let's say with "C:\Program Files\Sublime Text 3", which contains subl.exe, so I can use subl
in a command prompt. I cannot modify the system environment path, so I have to do it via the user environment path.
Using setx I could modify the User path variable, if I type echo %path%
it shows me that the path to subl was added to the variable, same when I go to 'Edit the user environment variables'. However, still neither subl
nor subl.exe
are recognized commands.
Following the second answer here, I see that on my pc, the type of Path is "REG_SZ" instead of "REG_EXPAND_SZ", could that be the problem? If so, how can I change that type? If I right-click on the variable and select "Modify", it only gives me the name and the value, but not the type.
I already restarted my pc, also in an administrator-prompt added paths aren't recognized.
Any help would be appreciated!
EDIT: Thanks for the suggestions, echo %path%
returns something of the form path1;path2;path3";path1;path2;path3;
, those double quotation marks are breaking it I suppose.