1

How can I list all environment variables for the currently connected user?

I tried %PATH% but it returns system variables.

0

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

with set " you can list also some "hidden" variables.
There is no possibility to get only variables for specific user, the "SET" return all environment variables

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.