Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my Windows Vista desktop is a folder I downloaded from an FTP server with FileZilla. I tried to delete it, and most of it went (all the files, and most of the subfolders), but a subfolder named con stubbornly remains. Trying to delete it again results in nothing: no error messages, no prompt for permissions, simply nothing happens.

How can I get rid of this folder?

Desktop/a/b/c/d/con. Trying to delete folder b.

Also, if con is a reserved name, how did FileZilla manage to create it in the first place?

share|improve this question
Opening c:\con\con was a lot of fun on Windows 95 or so. – Daniel Beck Sep 21 '11 at 12:12
up vote 4 down vote accepted

con and other DOS device names are reserved only in the Win32 namespace, not in Windows or the filesystem themselves. Even in Win32, all file name parsing can be disabled by programs when the \\?\ prefix is added.

Running the following in Command Prompt should remove your folder:

rmdir \\?\C:\Users\TRiG\Desktop\a\b\c\d\con
share|improve this answer

Below command should work. Just replace with the whatever file path you have.

rd \.\a\b\c\d\con

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .