1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Support' started by David McClelland, Oct 6, 2017.

  1. David McClelland

    Joined:
    Jun 4, 2008
    Messages:
    19
    Likes Received:
    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
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,970
    Likes Received:
    30
    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:\.
     
  3. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,311
    Likes Received:
    39
    Remember that the pipe opens a new instance of TCC. Do you, perhaps, change directories in your TCSTART.BTM file?
     
  4. David McClelland

    Joined:
    Jun 4, 2008
    Messages:
    19
    Likes Received:
    0
    Thanks but no, that wasn't the problem. I just re-ran the test to verify and the file appeared in C:\ as soon as the command was issued.
     
  5. David McClelland

    Joined:
    Jun 4, 2008
    Messages:
    19
    Likes Received:
    0
    That was my problem. Thanks for your insight.
     

Share This Page