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.