echo %PATH% will print the enviroment variable PATH. But I want to assign the environment variable to a batch variable first and then get the value of the environment variable. Is it possible?
Something as follows:
set myvar=PATH
echo %myvar%
The above code will echo "PATH". But I want to get the enviroment variable PATH