Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.