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?

up vote 6 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

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

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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