Reputation: 472
How can I list all environment variables for the currently connected user?
I tried %PATH%
but it returns system variables.
Upvotes: 1
Views: 1349
Reputation: 14304
set
by itself will list all environment variables.
You can also list all environment variables starting with a specific letter by passing that letter to set as a parameter. For example, to see all the variables that start with p, you may use set p
.
Upvotes: 1