How can I get the current user's environment variables from the command line without including the environment variables in the system? I use %path% to get all of them, including the system environment variables and the current user's, but I only want to get the current user's path variables, what should I do? Thanks
Asked
Active
Viewed 41 times
0
Shreker Nil
- 1
- 1
-
3Does this answer your question? [How to list global environment variables separately from user-specific environment variables?](https://superuser.com/questions/1179433/how-to-list-global-environment-variables-separately-from-user-specific-environme) – Saaransh Garg Oct 19 '21 at 17:01
-
This program lists the 4 types of variables that make up a program's variables. But all programs inherit from the program that started them. The first program started *WinLogon* sets it's variables. https://winsourcecode.blogspot.com/2019/05/listenvironmentexe-list-system-user.html – user1292580 Oct 19 '21 at 19:46