Mail Archives: djgpp-workers/2003/01/17/15:10:21
Note that the below problem is also seen under Windows 2000 ...
> I have a question about mkdir in Windows.
>
> Under windows NT, it seems that "mkdir ../test" won't work,
> and I have to use "mkdir ..\test". I wonder if it is designed
> this way for "mkdir.exe"?
This does look like bizzare behavior to me - and it seems to be
related to the fact that mkdir (and rmdir) are built into cmd.exe
shell.
Try this: copy mkdir.exe to md1.exe; then the command
md1 ../test
works fine.
Note that even fully qualifying the name doesn't help:
c:\djgpp\bin\mkdir.exe ../test
Invalid switch - /test
So this seems some strange limitation in cmd.exe and command.com;
both do this (even inside batch procedures). It doesn't do this
from bash.
- Raw text -