Have you ever tried to create folders with names such as “con”, “prn”, “nul” “com1″ “com2″ “lpt1″ etc. but failed? Is it impossible to create folders with such names in windows?
Well, the answer is NO and YES!
NO because, when create a new folder and try to rename it to any one of the above specified names, you know what happens! In Windows XP the folder name automatically changes back to “New Folder” no matter you try to renaming it any number of times. Where as in case of Windows Vista and Windows 7, when you try to rename the file you get an error message saying “The specified device name is invalid”.
What is the reason behind this? Simple, these names represent the internal devices of the operating system and hence we cannot create folders with the above names.
YES because it is still possible to create these folders using some simple methods as explained below:
1. Using Command Prompt:
Here is a step-by-step procedure to create the “con” folder using the command prompt:
-
Go to the command prompt:
-
Type in the command prompt (For ex. To create a folder in the E: drive by name: “CON”)
C:\>md \\.\e:\con
NOTE: “con” can be replaced by any other names such as “prn”, “nul” “com1″ “com2″ “lpt1″ etc. -
In case if you wish to delete the folder, use the following command:
C:\>rd \\.\e:\con
2. Using ALT Key and Numeric Keypad:
You can also use the Alt key and the Numeric keypad to accomplish the same job in a much easier way. Here is how you can do it:
-
Create a New folder (Right-click -> New -> Folder)
-
Once the new folder is created, right-click on it and select the option “Rename”.
-
Hold down the ALT key and type 0160 from the numeric keypad (ALT+0160) and release the ALT key.
-
Now, the folder name should go blank so that you can type any name of your choice such as “con”, “prn” “nul” etc. and press Enter. That’s it, you’re done!






I am Srikanth Ramesh, a computer engineer from India.
20 Comments
puruu
January 3, 2009 at 3:06 PMSahil
January 19, 2009 at 2:01 PMSahil
January 19, 2009 at 2:14 PMbharath
February 6, 2009 at 10:42 AMt0m5k1
March 25, 2009 at 5:36 PMFaizan
June 28, 2009 at 9:18 PMprasoon
December 14, 2009 at 1:09 PMviplove pandey
March 28, 2010 at 5:51 PMMatt Stevens
July 13, 2010 at 8:39 PMMastiMaza
July 18, 2010 at 4:45 PMbhadresh
July 27, 2010 at 9:47 PMSumit
July 27, 2010 at 10:58 PMsanket chaturvedi
August 14, 2010 at 7:52 AMRavi Kumar
November 25, 2010 at 10:06 PMmaster
January 14, 2011 at 10:27 PMNawabSab
February 12, 2011 at 5:56 AMmanali khadaria
March 9, 2011 at 6:32 PMsameer
March 18, 2011 at 10:21 PMSatish
March 21, 2011 at 3:34 PMJinS
July 13, 2011 at 1:02 PM