How To Create and Remove folder with Windows Disallowed Names

Last Updated On : Thursday, April 17, 2014
0

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.