-TC vs Explorer -> diffrent behavior with "..."

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

-TC vs Explorer -> diffrent behavior with "..."

Post by *MaxX »

To do:
1. Start cmd.exe and run command "md 1\2\3\4\5\6\"
2. Then run "cd 1\2\3\4\5\6\"
3. Then run "md ...\...\"
4. Then run "cd ...\...\"
Now you are in "\1\2\3\4\5\6\...\...>" dir.

Try to enter it via Explorer - you can successfully see all the 3-dot-filenamed dirs.
Try TC - get another behavior: when trying to open "1\2\3\4\5\6\..." you'll be kicked into "1\2\3\4"...
TC has misunderstood the "cd .." and "cd ...\" syntaxis...

Bug? Feature?
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

Also try this in cmd.exe:
Z:\>cd 1\2\3\4\5\6\
Z:\1\2\3\4\5\6>md ......\
Z:\1\2\3\4\5\6>cd ......\......\
Z:\1\2\3\4\5\6\......>

And try to open "Z:\1\2\3\4\5\6\......" dir. Now TC kicks up to "Z:\1\ ".
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

A WARNING to anyone reading this, do not try and create directories consisting of only dots.

Explorer wont even allow you to create directories named ... or .... etc. In fact, md or mkdir will not even do it, unless you add a backslash after it. So md ... fails, but md ...\ succeeds. Even navigating these folders with Explorer, after you manage to create them through the console is a problem.

This is not a bug or anything to worry about, it's such a weird and odd case that really shouldn't happen. Right now I am actually stuck with some ... and .... directories that is kinda tricky to remove again.

Here is how to remove these directories:
rd \\?\drv:\path\....
Of all the planets I've been to, this one is my favorite.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3379
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

this is not a bug but instead abusing system mechanics to make a bug report.
Hoecker sie sind raus!
User avatar
MaxX
Power Member
Power Member
Posts: 1175
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

Not such a problem that you think. You can easily copy some files to "1\2\3\4\5\6\...\...\" and copy them to anywhere from there.
The problem is that TC gives no access to these dirs, but cmd.exe does.
I understant that's not usual dirname, but now I need this one to be used.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3379
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

hu :?: cmd does give me access to that dir either :!:
Hoecker sie sind raus!
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: TC vs Explorer -> diffrent behavior with "...&am

Post by *white »

MaxX wrote:Try TC - get another behavior: when trying to open "1\2\3\4\5\6\..." you'll be kicked into "1\2\3\4"...
TC has misunderstood the "cd .." and "cd ...\" syntaxis...

Bug? Feature?
I would say feature. See:
http://ghisler.ch/board/viewtopic.php?t=15637

Creation
On Windows XP I can't create folders named "..." with cmd, explorer or TC. Except when using the \\?\ syntax, then I can using cmd or TC.

Access
I can't enter the folder "..." using cmd or explorer or TC. TC goes to grandparent folder.

Rename
I can't rename the folders using cmd or explorer. I can when using TC and by using the \\?\ syntax and F6 (not Shift-F6). In TC type "cd \\?\c:\temp\1\2\3\4\5\6", select the folder "...", press F6, enter new name. So using TC I can access the folder by renaming it.

Removal
I can't remove the dir "..." using explorer. I can with cmd if folder is empty, or with TC by using the \\?\ syntax.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I don't have any plans to support such names.
Author of Total Commander
https://www.ghisler.com
Post Reply