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

Jun 4, 2008
30
0
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
 
May 20, 2008
12,178
133
Syracuse, NY, USA
It should be. Check the timestamp on the one in C:. Could it be left over from a previous test? I'm surprised you can even write to C:\.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,689
106
Albuquerque, NM
prospero.unm.edu
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?
 

Similar threads