How To Create and Remove folder with Windows Disallowed Names

Updated On: Thursday, April 17, 2014

In windows you can’t create the folder with name CON . Not only CON you are not able to create the folders with the following names CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, etc.,

But there is a way to create folders with the above listed names.

How To Steps:

1.Open Command Prompt
Use Start->Programs-> Command Prompt [or] Start-> RUN and type cmd
2. Then type md \\.\c:\con [where c:\con create con folder in the C: directory home path, you may specify any location where you want to create the directory]
-md is nothing but a make directory command
3.Press Enter the folder will be created in the concerned folder.
4.Also you are not able to delete the folder created using above steps by normal deletion method[by pressing delete key]
5.To delete the folder again go to command prompt and type rd \\.\c:\con [where c:\con delete con folder in the C: directory home path, you may specify any location where you have created the CON directory]
-rd is nothing but a remove directory command

Hope now you will create any folder with the windows disallowed names.

  • My torrenting software created a folder based on a TV show’s name, “Con.Man.S01….” and it took me a while to realize what was going on. I tried moving the folder from Videos to Desktop but it copied because it couldn’t delete the first one. Then I realized what was happening.

    BUT all these tutorials I find talk about removing a folder named “con” not a folder that starts with “Con.”. The “rd \.c:….” trick doesn’t work, even with quotes around the full path/filename.

    I have booted with a live CD and gotten rid of the first one but, for some reason, it didn’t work on the second. Still working on it.