TEE command puts it's output file in c:\

Jun 4, 2008
19
0
#1
I brought up a new tab and entered

[C:\]d:\Junk\

[D:\Junk]echo A line | tee teetest.txt
A line

The file teetest.txt was not in d:\Junk but I found it in c:\

Shouldn't it be in the current directory? Or am I missing something.

I am running:
TCC 21.01.53 x64 Windows 10 [Version 10.0.15063]

David
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
3,586
46
Albuquerque, NM
prospero.unm.edu
#3
I brought up a new tab and entered

[C:\]d:\Junk\

[D:\Junk]echo A line | tee teetest.txt
A line

The file teetest.txt was not in d:\Junk but I found it in c:\

Shouldn't it be in the current directory? Or am I missing something.
Remember that the pipe opens a new instance of TCC. Do you, perhaps, change directories in your TCSTART.BTM file?