delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/01/17/15:10:21

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10301172011.AA24152@clio.rice.edu>
Subject: Re: mkdir in windows NT (fwd)
To: djgpp-workers AT delorie DOT com (DJGPP developers)
Date: Fri, 17 Jan 2003 14:11:16 -0600 (CST)
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019