How do you view fully resolved REG_EXPAND_SZ entry?

  • Thread starter Thread starter Chris Gersch
  • Start date Start date
C

Chris Gersch

How can I view the fully resolved value of a Registry
entry that has a data type of REG_EXPAND_SZ? The Registry
entry in question contains multiple unexpanded references
to other environment variables. One of the references
(i.e. %PWPROD%) exists as both a System Variable (value is
\\dfssvr\dfs_root\pwapps\prod) and a User Variable (value
is k:\prod). How do I determine which value is being used?
 
From a command prompt;
set
to see the resolved values of any system and or user environment variables.
 
From a command prompt;
set
to see the resolved values of any system and or user environment variables.
 
The SET command does not display all Registry entries. I
would like to be able to see the resolved value of each of
the Oracle Registry entries under
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.
-----Original Message-----
From a command prompt;
set
to see the resolved values of any system and or user environment variables.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Chris Gersch said:
How can I view the fully resolved value of a Registry
entry that has a data type of REG_EXPAND_SZ? The Registry
entry in question contains multiple unexpanded references
to other environment variables. One of the references
(i.e. %PWPROD%) exists as both a System Variable (value is
\\dfssvr\dfs_root\pwapps\prod) and a User Variable (value
is k:\prod). How do I determine which value is being
used?


.
 
The SET command does not display all Registry entries. I
would like to be able to see the resolved value of each of
the Oracle Registry entries under
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.
-----Original Message-----
From a command prompt;
set
to see the resolved values of any system and or user environment variables.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Chris Gersch said:
How can I view the fully resolved value of a Registry
entry that has a data type of REG_EXPAND_SZ? The Registry
entry in question contains multiple unexpanded references
to other environment variables. One of the references
(i.e. %PWPROD%) exists as both a System Variable (value is
\\dfssvr\dfs_root\pwapps\prod) and a User Variable (value
is k:\prod). How do I determine which value is being
used?


.
 
You said %PWPROD% is a system and user variable. Are you saying it doesn't
resolve at all? Doesn't show up if you type set?
 
You said %PWPROD% is a system and user variable. Are you saying it doesn't
resolve at all? Doesn't show up if you type set?
 
I think in most cases the user variable would take precedence over a system
variable when there are duplications. I also think the ultimate solution is
to only use one or the other. As declaring an identical variable in two
different scopes only leads to confusion for the user and or the
application.
 
I think in most cases the user variable would take precedence over a system
variable when there are duplications. I also think the ultimate solution is
to only use one or the other. As declaring an identical variable in two
different scopes only leads to confusion for the user and or the
application.
 
Chris Gersch wrote in
PWPROD does show up when I issue the SET command, that
however does not guarantee the the Oracle registry entries
are using the System variable PWPROD or the User variable
PWPROD. I know for a fact that the PATH statement always
picks up the System varialbe PWPROD instead of the User
variable PWPROD. That's why I was asking if there was a
tool that would display the resolved value of any key in
the Registry. I wonder what determines which variables
get displayed when you issue the SET command?

The "system" (or "machine") values are "first" (and global for all
Users).
The User values in general over-ride the system variables when there
is a name conflict. One exception is PATH. User PATH is _appended_
to System PATH. On a very few systems an AUTOEXEC.BAT variable might
come into play as well.

So, generally what you see with SET is what the program will see.
OTOH if a program specifically reads the registry at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
\Environment\
or
HKEY_CURRENT_USER\Environment\
Then it gets the raw data stored there.

Since you have a variablename PWPROD in both the System and User
location, SET will show you the value of the User variable.

The fact that one shows "K:" means of course that it is useless
without that mapping which may be automatically mapped or done via a
logon script.

Beyond all that you could first do a registry backup, then modify one
or the other value and observe how the application reacts to the
change.

-----Original Message-----
You said %PWPROD% is a system and user variable. Are you saying it doesn't
resolve at all? Doesn't show up if you type set?

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Chris Gersch said:
The SET command does not display all Registry entries. I
would like to be able to see the resolved value of each of
the Oracle Registry entries under
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.


.
 
Chris Gersch wrote in
PWPROD does show up when I issue the SET command, that
however does not guarantee the the Oracle registry entries
are using the System variable PWPROD or the User variable
PWPROD. I know for a fact that the PATH statement always
picks up the System varialbe PWPROD instead of the User
variable PWPROD. That's why I was asking if there was a
tool that would display the resolved value of any key in
the Registry. I wonder what determines which variables
get displayed when you issue the SET command?

The "system" (or "machine") values are "first" (and global for all
Users).
The User values in general over-ride the system variables when there
is a name conflict. One exception is PATH. User PATH is _appended_
to System PATH. On a very few systems an AUTOEXEC.BAT variable might
come into play as well.

So, generally what you see with SET is what the program will see.
OTOH if a program specifically reads the registry at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager
\Environment\
or
HKEY_CURRENT_USER\Environment\
Then it gets the raw data stored there.

Since you have a variablename PWPROD in both the System and User
location, SET will show you the value of the User variable.

The fact that one shows "K:" means of course that it is useless
without that mapping which may be automatically mapped or done via a
logon script.

Beyond all that you could first do a registry backup, then modify one
or the other value and observe how the application reacts to the
change.

-----Original Message-----
You said %PWPROD% is a system and user variable. Are you saying it doesn't
resolve at all? Doesn't show up if you type set?

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Chris Gersch said:
The SET command does not display all Registry entries. I
would like to be able to see the resolved value of each of
the Oracle Registry entries under
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE.


.
 
Unfortunately, I am at the mercy of the desktop
technologist at my company. I've been asked to make
something work for users that logon and for batch
processing the utilizes unused processing cycles on
unattended machines. That is why the PWPROD variable
shows up to two places. So what you are telling me is
that no such tool exists for displaying the resolved value
of Registry entries that have a data type of
REG_EXPAND_SZ? One of technologist is telling me that
part of the problem is that Registry values are resolved
alphabetically. That is why I am having trouble with the
PATH statement. PATH comes before PWPROD.
-----Original Message-----
I think in most cases the user variable would take precedence over a system
variable when there are duplications. I also think the ultimate solution is
to only use one or the other. As declaring an identical variable in two
different scopes only leads to confusion for the user and or the
application.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Chris Gersch said:
PWPROD does show up when I issue the SET command, that
however does not guarantee the the Oracle registry entries
are using the System variable PWPROD or the User variable
PWPROD. I know for a fact that the PATH statement always
picks up the System varialbe PWPROD instead of the User
variable PWPROD. That's why I was asking if there was a
tool that would display the resolved value of any key in
the Registry. I wonder what determines which variables
get displayed when you issue the SET command?


.
 
Unfortunately, I am at the mercy of the desktop
technologist at my company. I've been asked to make
something work for users that logon and for batch
processing the utilizes unused processing cycles on
unattended machines. That is why the PWPROD variable
shows up to two places. So what you are telling me is
that no such tool exists for displaying the resolved value
of Registry entries that have a data type of
REG_EXPAND_SZ? One of technologist is telling me that
part of the problem is that Registry values are resolved
alphabetically. That is why I am having trouble with the
PATH statement. PATH comes before PWPROD.
-----Original Message-----
I think in most cases the user variable would take precedence over a system
variable when there are duplications. I also think the ultimate solution is
to only use one or the other. As declaring an identical variable in two
different scopes only leads to confusion for the user and or the
application.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Chris Gersch said:
PWPROD does show up when I issue the SET command, that
however does not guarantee the the Oracle registry entries
are using the System variable PWPROD or the User variable
PWPROD. I know for a fact that the PATH statement always
picks up the System varialbe PWPROD instead of the User
variable PWPROD. That's why I was asking if there was a
tool that would display the resolved value of any key in
the Registry. I wonder what determines which variables
get displayed when you issue the SET command?


.
 
So are they really different directories? In other words does
K:\ = \\dfssvr\dfs_root\pwapps\

If not then I think you'll want to use only the system variable declaration
and then use a set in your batch processing shell script to temporarily
change the system variable PWPROD value when the batch job runs.
 
So are they really different directories? In other words does
K:\ = \\dfssvr\dfs_root\pwapps\

If not then I think you'll want to use only the system variable declaration
and then use a set in your batch processing shell script to temporarily
change the system variable PWPROD value when the batch job runs.
 
Back
Top