# Windows “…” directory [closed]

I noticed something weird today. On the windows command prompt these are all valid:

cd .....
cd ....
cd ...


these are the more well known versions of parent dir and current dir

cd ..
cd .


What is weird is that other commands fail like dir ......

Why does this happen? Is it the same reason this works: cd foo\\\\\\bar (i'm assuming the parser is greedy?)

-
cmd.exe or PowerShell? –  grawity Sep 24 '12 at 19:05
Perhaps command.com? Or Interix or Cygwin shell? –  Eroen Sep 24 '12 at 23:40
this was cmd.exe... Despite being marked as "not constructive" I found that in java new File("....").exists() always returns true. I suspect that these are related. –  mlathe Sep 25 '12 at 21:13