- Oct
- 369
- 2
I'm not sure if this is a bug.
In my tcstart.btm file, I set a volatile environment variable like this:
set /e /v foo=bar
When my PC starts up, I have tcc in the startup folder. once the system starts
and is settled, I then start tcmd from the quick start menu. I can see while
(tab) tcc is starting it takes the path in tcstart where it finds the FOO
variable via
if defined foo .....
I was making some changes and remove tcc from the startup folder, and would then
just started tcmd from quick start. when the first tcc tab was created I notice
that tcstart took the path were FOO was NOT defined, defined it and set it in
volatile and environment.
I then noticed that the next tcc tab I created took the path in tcstart were FOO
did not exist. I thought I was missing something so, I modified tcstart and
added
set /v
Before testing if FOO was defined. I could see from the output of set /v that
FOO was in the list, but the next line in the bat file was
iff not defined FOO ...
The bat file followed the path as if FOO did not exist.
So, by the time tcstart is executing, has TCC loaded up all the defined
Environment variables from
HKLM\System\CurrentControlSet\Control\Session Manager\Environment,
HKCU\Environment, and HKCU\Volatile Environment
In my tcstart.btm file, I set a volatile environment variable like this:
set /e /v foo=bar
When my PC starts up, I have tcc in the startup folder. once the system starts
and is settled, I then start tcmd from the quick start menu. I can see while
(tab) tcc is starting it takes the path in tcstart where it finds the FOO
variable via
if defined foo .....
I was making some changes and remove tcc from the startup folder, and would then
just started tcmd from quick start. when the first tcc tab was created I notice
that tcstart took the path were FOO was NOT defined, defined it and set it in
volatile and environment.
I then noticed that the next tcc tab I created took the path in tcstart were FOO
did not exist. I thought I was missing something so, I modified tcstart and
added
set /v
Before testing if FOO was defined. I could see from the output of set /v that
FOO was in the list, but the next line in the bat file was
iff not defined FOO ...
The bat file followed the path as if FOO did not exist.
So, by the time tcstart is executing, has TCC loaded up all the defined
Environment variables from
HKLM\System\CurrentControlSet\Control\Session Manager\Environment,
HKCU\Environment, and HKCU\Volatile Environment