I have a requirement where in which,
Lets say
- Am logging with a user called AAA to my windows machine and execute below command
SETX home %UserProfile%
This will set
home= C:\Users\AAA
and same we can see in env variables.
- I will logout and log in with user BBB
if i make
echo %home%
, this user will not have home env, i wish to gethome=C:\Users\BBB
here also without usingSETX
again.
Please suggest me the solution, How to set one user variable that should persist across any user he login to machine.
Note: It should not be system variable.
Please share your thoughts.