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

The STRANGEST error!

Discussion in 'Support' started by CWBillow, Jun 13, 2011.

  1. CWBillow

    Joined:
    Jul 12, 2008
    Messages:
    194
    Likes Received:
    0
    If I type "cd temp" I get an error "The system cannot find the file specified "temp".

    I checked to see if I had an alias temp, but no.

    I tried logging off, but no. AND I tried rebooting. nada.

    What the heck?

    Regards,
    Chuck Billow
     
  2. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    604
    Likes Received:
    0
    Do you mean cd %temp? I have no problem, assuming of course there _is_ a
    temp in the current folder.

    On Mon, Jun 13, 2011 at 20:55, CWBillow <> wrote:




    --
    Jim Cook
    2011 Monday: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
    Next year they're Tuesday.
     
  3. CWBillow

    Joined:
    Jul 12, 2008
    Messages:
    194
    Likes Received:
    0
    Jim, no, I just mean, from the root folder / directory, CD temp, and yea, it's there.

    Chuck

     
  4. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,307
    Likes Received:
    39
    How about an alias for CD?

    Does it work if you give the full pathname, e.g. CD C:\TEMP ?
     
  5. Steve Pitts

    Joined:
    Jul 7, 2008
    Messages:
    159
    Likes Received:
    0
    Or indeed what about:

    cd .\temp
     
  6. JohnQSmith

    Joined:
    Jan 19, 2011
    Messages:
    559
    Likes Received:
    7
    Are you sure that is the error message? I tried with a missing temp directory (also with a "temp" file instead of a directory) and got a "path specified" message, not a "file specified" message.
    Code:
    [J:\]cd temp
    TCC: (Sys) The system cannot find the path specified.
     "temp"
    
    [J:\]cmd
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    
    J:\>cd temp
    The system cannot find the path specified.
    
     
  7. CWBillow

    Joined:
    Jul 12, 2008
    Messages:
    194
    Likes Received:
    0
    I'm sure. But I was setting up other stuff anyway, so I just restored from an image.

    I would just like to know what the heck caused that.

    Regards,
    Chuck

     
  8. oph

    oph

    Joined:
    Jun 28, 2008
    Messages:
    25
    Likes Received:
    0
    The same error here (testing the Spanish version of TC under Spanish W7):

    which cd
    cd es un comando interno
    (cd is an internal command)

    cd temp

    TCC: (Sys) El sistema no puede encontrar el archivo especificado.
    "temp"

    (The system cannot find the file specified "temp")
     
  9. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    Two things:

    1) That's a system (Windows) error message, not a TCC error. TCC is just displaying the error text that Windows sends.

    2) Windows (appparently randomly) returns three different error codes for "file not found / path not found", so don't try to read anything mysterious into the actual text displayed. All you can be sure of is that Windows didn't find something (either a path or a file).
     
  10. CWBillow

    Joined:
    Jul 12, 2008
    Messages:
    194
    Likes Received:
    0
    Rex, strange as the devil nonetheless. It's "transparent" in windows apps -- I see and can access the file/folder in explorer.

    Very starnge...

     
  11. oph

    oph

    Joined:
    Jun 28, 2008
    Messages:
    25
    Likes Received:
    0
    It is not strange message for me, it is incorrect. When one tries to "cd" to an existent file (not directory), the error message is correct.

    cd file

    TCC: (Sys) El nombre del directorio no es válido.
    "file"

    (The name of the directory is not valid.
    "file")

    It is a Windows message, of course.
     
  12. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    On Fri, 17 Jun 2011 08:53:22 -0400, oph <> wrote:

    |It is not strange message for me, it is incorrect. When one tries to "cd" to an existent file (not directory), the error message is correct.
    |
    |cd file
    |
    |TCC: (Sys) El nombre del directorio no es válido.
    | "file"
    |
    |(The name of the directory is not valid.
    |"file")
    |
    |It is a Windows message, of course.

    Investigate the Windows error messages like this.

    Code:
    v:\> do i in /L 2 3 267 (echo %i^t%@errtext[%i])
    2       The system cannot find the file specified.
    3       The system cannot find the path specified.
    267     The directory name is invalid.
    How Windows uses them is a bit mysterious.

    Code:
    v:\> cd no_exist.txt
    TCC: (Sys) The system cannot find the file specified.
     "no_exist.txt"
    
    v:\> cd c:\no_exist\no_exist.txt
    TCC: (Sys) The system cannot find the path specified.
     "c:\no_exist\no_exist.txt"
    
    v:\> cd exist.txt
    TCC: (Sys) The directory name is invalid.
     "exist.txt"
    If you imagine what might be going on inside windows, you could rationalize the
    messages above.

    First Windows tries to verify that the named thing exists (not knowing if you
    have tried to name a file or a directory; the same generic routine being used
    for both). If it can't get to the place where you said the thing was, you get
    error 3. If the place exists but the thing doesn't you get error 2. If it
    finds the thing and it's not a directory you get error 267.
     
  13. CWBillow

    Joined:
    Jul 12, 2008
    Messages:
    194
    Likes Received:
    0
    Vince, I apologize for being a little slow here, but help me out:

    So, if I, from the root of "C", type "cd temp", with temp being a valid folder name, is that a valid error, telling me that something in my syntax etc. is wrong, or is the message incorrect?

    'Cause I have been using a "Temp" on my root drive forever, and never seen this message before..

    Chuck

     
  14. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    On Sat, 18 Jun 2011 12:34:21 -0400, CWBillow <> wrote:

    |Vince, I apologize for being a little slow here, but help me out:
    |
    |So, if I, from the root of "C", type "cd temp", with temp being a valid folder name, is that a valid error, telling me that something in my syntax etc. is wrong, or is the message incorrect?
    |
    | 'Cause I have been using a "Temp" on my root drive forever, and never seen this message before..

    I was only commenting on how the Windows error messages work.

    I find it hard to believe that your current working directory is C:\, that there
    exists a directory C:\Temp to which you have access, and that "cd temp" fails.
    That would be a major screw-up on the part of Windows.

    Try these (exactly) and paste the results in a reply.

    Code:
    echo %_cwd
    *dir /k /m /a:d t*
    *cd temp
    echo %_cwd
     
  15. Kachupp

    Joined:
    Aug 9, 2009
    Messages:
    133
    Likes Received:
    0
    Chuck if you post a SET >AllForSupport.TXT does temp have variable name
    defined
    try cd %temp


     
  16. CWBillow

    Joined:
    Jul 12, 2008
    Messages:
    194
    Likes Received:
    0
    Vince, as you expected, the attached is what I received.

    But this is/was after restoring from a backup last evening.

    So I suspect it was some quirk or corrupted path or ...

    Thanks,
    Chuck

     

    Attached Files:

  17. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    You didn't attach the output, only the batch file. If it's now OK, don't bother.

    PATH has nothing to do with it. My only guess is that you weren't really **in** C\.
     
  18. CWBillow

    Joined:
    Jul 12, 2008
    Messages:
    194
    Likes Received:
    0
    OK, thanks.

     

Share This Page