Is there any way to get the value of the PATH environment variable through the command prompt?
For example:
REG QUERY HKCU\Environment /v PATH
It throws me the value of the PATH variable of the current user (it can also be done with the one of the system writing a different route, but I only need the user one), but together with that it also tells me the name of the variable and of what type it is (by default it comes in REG_SZ but it can also be REG_SZ_EXPAND).
What I want to do is save the value of PATH in some variable to then do operations on it, for example, a chain concatenation, etc.
Important Note: I can not do something like: set x =% path% because this combines the PATH value of the user with the system, and I only need the user's PATH value.