How to get rid of folder containing just three dots [...] (pointing to its parent folder)

6

3

On a (German) Server 2008 we found a folder with the name G:\Daten\Büro_GL\...

When entering the folder ... in windows explorer it just points back to its parent folder (G:\Daten\Büro_GL).

The folder can't be deleted, because it would delete also every subfolder. Also denying List folder content only for This folder doesn't work. The deny then is applied to the parent folder, too.

enter image description here

The folder [...] is a folder and not a symbolic link:

enter image description here

We would like to avoid moving the content of the folder, to not to interrupt the workflow on the productive system.

(I'm also keen to know how such a folder could be created)

marsh-wiggle

Posted 2015-12-08T10:52:24.803

Reputation: 2 357

Can your rename the folder by selecting it, press F2 and then alter its name? – LPChip – 2015-12-08T11:05:10.120

@lpchip No can't rename it, at least while files in the sub folders are in use (closing the files would mean to log off all users from the terminal servers which we would like to avoid) – marsh-wiggle – 2015-12-08T11:15:16.750

If you can't rename because files are in use, you won't be able to do anything with the files really. – LPChip – 2015-12-08T11:35:23.337

What does dir /al (not /ah) show? – dxiv – 2015-12-08T19:10:08.447

@divx "no files found" for dir /al& dir /ahl – marsh-wiggle – 2015-12-09T07:23:41.573

Answers

2

This can only happen if the NTFS data structures get confused, causing a folder to be its own ancestor. It's possible that a driver is at fault. The drive itself could be failing, or the corruption might just be from a cosmic ray.

One job of the chkdsk utility is to clean up folders that literally contain themselves - cycles within the folder structure. (Source.) Since chkdsk /? states that /C skips the checking for cycles, it can be inferred that the normal behavior is to repair them.

Run chkdsk /f D: in an elevated command prompt to fix the problem, along with any other inconsistencies. The volume will have to go offline during the repair. If it is the boot volume, you'll need to reboot after scheduling the disk check.

Ben N

Posted 2015-12-08T10:52:24.803

Reputation: 32 973

Thanks. I hope we will get a slot for maintance this weekend. I will give you a feedback – marsh-wiggle – 2015-12-08T15:18:08.590

The chksdsk didn't fix the problem. We will move the data to a new folder in the next longer maintance time Thanks for the its own ancestor hint. +1 – marsh-wiggle – 2015-12-14T16:04:10.363

1

On how a ... folder could be created: I accidentally created one using 7-zip (18.05) by defining an archive name ...\filename.7z.

Fortunately, the directory could be renamed with 7-zip and subsequently deleted.

Didier H

Posted 2015-12-08T10:52:24.803

Reputation: 11

I was able to rename it using Git's mv.exe in an elevated command prompt. (C:\Program Files\Git\usr\bin\mv.exe in a default Git installation) – cowlinator – 2019-12-05T23:05:22.437

1

Solved this by my co worker, sadly I closed the cmd before realizing it.. I'll write the things I remember..

My CoWorker got the "..." directory in root of C: So I tried these:

dir "C:\...\"

And a empty directory was shown. So a

rmdir "C:\...\"

deletes the directory

A bit Background:

Windows File-IO APIs call at first a file name check. And a "..." was interpenetrated as ".." - so, go a director up. Try thyping in Exporer "C:\Windows..\ProgramData". (FYI: In the API is mentioned: If the filename beginns with "\?\", the check is disabled and Such directories can be accessed: Because it turns off automatic expansion of the path string, the "\\?\" prefix also allows the use of ".." and "." in the path names, which can be useful if you are attempting to perform operations on a file with these otherwise reserved relative path specifiers as part of the fully qualified path. But this is information for a programmer.)

Edit:

Because of the discussion "Fit this answer to the question?":

I've tested it. Created a directory. This is how it looks like in Explorer:

Windows Explorer multiple times in "..."

And this is what you see with "dir":

cmd with "dir ...": Empty directory

So: The directory is empty, but Explorer is showing "wrong" information. This is not a conflict considering how the Windows API works: The File API tries to do interpretation of the file / directory name. So move a directory up, if there is a "..", etc. That is what you see in the explorer view. In the cmd I tried to find a string forcing the Windows API no doing a interpretation.

Ralph Erdt

Posted 2015-12-08T10:52:24.803

Reputation: 131

If your ... directory was empty, you didn’t have the same problem as the one discussed here. – Scott – 2019-01-25T08:39:56.130

I don't see it so. Entering the "..." folder just "throws" you back to the parent directory. So this looked like there are subfolders (We had the same symptoms). You did not see the real content without "force". But you can adept this solution: cd "C:\...\" and work in there had a good chance to work. Also ren "C:\,,,\" "C:\xxx" had a good chance to work. – Ralph Erdt – 2019-01-25T09:26:08.587

(1) You say “… this looked like there are subfolders (We had the same symptoms).”  But you also said “So I tried these: — dir "C:\...\" — And an empty directory was shown.”  It seems to me that you are contradicting yourself. (2) When you said ren "C:\,,,\" "C:\xxx", did you mean ren "C:\...\" "C:\xxx"? – Scott – 2019-01-25T18:53:54.603

(1) I've extended my answer with examples. Please feel free to comment. (2) You are right, sorry for the typo. (3) I've tested the "cd" and "ren" suggestions. They did not work. :( – Ralph Erdt – 2019-01-28T07:05:17.750

0

The reason you see ... behaving like this is due to a win32 compatability layer thing resulting in ... always goes to grandparent of the current folder (it emulates NetWare behavior but accidentally got applied to local filesystems).

You cannot see inside this folder with cmd.exe or Windows Explorer. If you can get interix working (this OS is too old for LUFS) you can descend that way. Otherwise you're going to have to write a lot of code using FILE_FLAG_POSIX_SEMANTICS to get that thing open and see what is really inside it.

Joshua

Posted 2015-12-08T10:52:24.803

Reputation: 619