get/display permanently stored variables?
Moderator: DosItHelp
get/display permanently stored variables?
How do I get/display a permanently stored environment variable?
Re: get/display permanently stored variables?
no cos as an example, if you permanently set an environment variable, so, you use setx or the GUI, then run set to display them, it isn't changed for the "session" yet, whereas if you opened a new command prompt, then it'd be loaded into the session.
I want a way to do like a 'set', that displays the permanent ones. not the current ones.
just like setx sets permanent ones, and one would have to do set afterwards to get them set for the current session, or load a new cmd prompt. So there is a distinction there.
I want a way to do like a 'set', that displays the permanent ones. not the current ones.
just like setx sets permanent ones, and one would have to do set afterwards to get them set for the current session, or load a new cmd prompt. So there is a distinction there.
Re: get/display permanently stored variables?
'
Ah yes, I suspected this is what you were after
This is where XP stores it's permanent variables,
You enumerate RegPath and you'll get the permanent variables.
see reg query /? for help.
Ah yes, I suspected this is what you were after
Code: Select all
:: use to create environment variable
::(
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
::)
This is where XP stores it's permanent variables,
You enumerate RegPath and you'll get the permanent variables.
see reg query /? for help.
Last edited by Ed Dyreen on 03 Aug 2011 18:14, edited 1 time in total.