Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

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

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
 
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:\.
 
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

Back
Top