- Aug
- 2,293
- 111
With DIRENV on,
I have an .envtc file stored on my RAMDisk,
which is drive R:\
The DIRENV and .envtc were introduced in Version 30.
jpsoft.com
The contents of the .envtc file on my R:\ drive;
On a drive other than R:\, my TEMP environment variable points to;
When I switch to drive R:\, the TEMP environment variable becomes;
When I switch to a drive other than R:\, the TEMP environment variable becomes;
My workaround to this issue,
is to use SETLOCAL before switching to my R:\ drive.
Posting this mainly for my future reference,
but thought others might find it useful.
Joe
I have an .envtc file stored on my RAMDisk,
which is drive R:\
The DIRENV and .envtc were introduced in Version 30.
Take Command / TCC Help v. 32
The contents of the .envtc file on my R:\ drive;
Code:
R:\>type .envtc
temp=r:\temp
On a drive other than R:\, my TEMP environment variable points to;
Code:
TEMP=C:\Users\jlcav\AppData\Local\Temp
When I switch to drive R:\, the TEMP environment variable becomes;
Code:
R:\>set temp
r:\temp
When I switch to a drive other than R:\, the TEMP environment variable becomes;
Code:
E:\Utils>set temp
TCC: Not in environment "temp*"
My workaround to this issue,
is to use SETLOCAL before switching to my R:\ drive.
Code:
E:\Utils>set temp
C:\Users\jlcav\AppData\Local\Temp
E:\Utils>setlocal
E:\Utils>set temp
C:\Users\jlcav\AppData\Local\Temp
E:\Utils>r:
R:\>set temp
r:\temp
R:\>e:
E:\Utils>set temp
TCC: Not in environment "temp*"
E:\Utils>endlocal
E:\Utils>set temp
C:\Users\jlcav\AppData\Local\Temp
Posting this mainly for my future reference,
but thought others might find it useful.
Joe