Mail Archives: djgpp-workers/2003/01/18/06:32:53
> From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
> Date: Fri, 17 Jan 2003 14:11:16 -0600 (CST)
>
> > 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.
Right. Builtin commands of DOS/Windows shells generally don't
support forward slashes.
> Try this: copy mkdir.exe to md1.exe; then the command
> md1 ../test
> works fine.
We have the gmkdir.exe ``symlink'' precisely for this purpose. From
the shell's prompt, invoke `gmkdir', not `mkdir'.
> 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.
Try this instead, it might help:
mkdir "../test"
- Raw text -