North West Business Intelligence Ltd North West Business Intelligence Ltd

Business Intelligence Consultancy

 
  • Increase font size
  • Default font size
  • Decrease font size
Home Technical Tips Tip - Can't delete folder called Con

Tip - Can't delete folder called Con

E-mail Print PDF

It shouldn't be possible but I've been stuck with another niggling problem for months, a folder on my desktop I just can't delete.  It happens to be called Con which I thought nothing of, it being an abbreviation of Coniston, the name of one of the projects I'm working on.

Tried a million and one tips, uninstalled various utilities, installed others, safe mode, dos prompt, nothing worked always coming up with the error, "Specified Device Name Is Invalid" or "Directory or file does not exist".  Nice message Microsoft, it blatantly does exist, it's there in front of me!

Finally found the solution here http://www.gohacking.com/2008/02/how-to-create-con-folder-in-windows.html, it turns out Con is a reserved name, yes really, you can't have a folder called Con, or prn nul com1 com2 etc for that matter.  I won't get into how that is still the case with 40 years of personal computing behind us and get to the fix!

As per the link above, open a dos prompt and run the following based on your directory path

 

	rd \\.\c:\users\andy\desktop\con
Folder gone.
Two months I've been searching for that one!
Andy