How can this be helpful? Here's my case: at startup I use to run a batch file. This batch file can be run also other times during my session, however with a slightly different behaviour, since this batch file was already run at startup. Here's where volatile environment comes handy: when run upon logon (i.e. the first time) the batch file writes there a key/variable, which survives all session long and will tell afterwards the script that next execution(s) won't be the first.
XY part: Xyplorer doesn't seem to read new values added to that registry section.
If I type in the address bar
Code: Select all
!echo %username%However, if I try to add a new variable/key named foo with value bar
Code: Select all
!reg add "HKCU\Volatile Environment" /v foo /d "bar" /fCode: Select all
!echo %foo%Can you reproduce that? And why this behaviour?
PS: someone may argue that the change is not broadcasted to the whole system. However, I tried to apply this variable with this utility ( http://barnyard.syr.edu/~vefatica/#SETENV ), which takes care of this problem, and the result is the same.
PPS: I'm running Windows 7.
XYplorer Beta Club