rennajihi
rennajihi

Reputation: 472

List user environment variables batch script

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

I tried %PATH% but it returns system variables.

Upvotes: 1

Views: 1349

Answers (1)

SomethingDark
SomethingDark

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

Related Questions