How to Create a CON Folder in Windows?

Create CON Folder in WindowsHave you ever tried to create a CON folder or any folder 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 the Command Prompt:

Here is a step-by-step procedure to create the “con” folder using the command prompt:

  1. Go to the command prompt:

  2. 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.
  3. In case if you wish to delete the folder, use the following command:

    C:\>rd \\.\e:\con

NOTE: This folder can only be deleted from the command prompt. You cannot remove it by right-click delete.

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:

  1. Create a New folder (Right-click -> New -> Folder)

  2. Once the new folder is created, right-click on it and select the option “Rename”.

  3. Hold down the ALT key and type 0160 from the numeric keypad (ALT+0160) and release the ALT key.

  4. 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!


  1. puruu
    January 3, 2009 at 3:06 PM

    ha its very easy
    just create new folder
    rename it by using alt+2+5+5 (2,5,5 no. should be typed from numpad by turning it on)
    after this you can give any name or u can leave the folder with blank name.

  2. Sahil
    January 19, 2009 at 2:01 PM

    Ha its impossible. Puruu is wrong `alt+2+5+5` is a code of a simvol which we can`t see in desktop. But if you enter `alt+2+5+5` in Excel file you`ll see this symbol. So it is impossible to create CON folder

    • Abhi
      June 7, 2014 at 9:36 AM

      It’s possible to create con folder you just rename a folder name to con and press alt and hold alt button and press 255 on keyboard , now release alt button n see the magic

  3. Sahil
    January 19, 2009 at 2:14 PM

    dadecoders is wrong too, because we can create empty folder not only with `ALT+0160`. We can create empty folder with every symbol which is`nt appear when we enter this codes/ And it means that there are have a name which we cannt see.

  4. bharath
    February 6, 2009 at 10:42 AM

    yes of course its right thanks for tho info buddy

  5. t0m5k1
    March 25, 2009 at 5:36 PM

    why would you want to create a folder called con?

    i think windows is seeing these as device names & rather than causing confusion to itself it will not allow these names to be used as a folder name in case some poorly written application see’s it as a device!

    i think you could use ubuntu linux to access the drive using fuse & create the folder that way (because it is windows stopping you NOT the ntfs) but weather windows will display/acknowledge this folder is another story

    it would be intersting to see if windows has this behavior with other supported filesystems!

  6. Faizan
    June 28, 2009 at 9:18 PM

    well all the tricks as well as comments are great

  7. prasoon
    December 14, 2009 at 1:09 PM

    ultimate website

  8. viplove pandey
    March 28, 2010 at 5:51 PM

    very great and useful tricks

  9. Matt Stevens
    July 13, 2010 at 8:39 PM

    Thanks for tell us, I was searching for it Thanks alot.

    It is really pretty cool…nobody can make this folder on desktop.


  10. MastiMaza
    July 18, 2010 at 4:45 PM

    Its A Challenge To Microsoft And billgates:)
    I Can Make all the Folder That No Body Can Makes

  11. bhadresh
    July 27, 2010 at 9:47 PM

    so useful for me thanks

  12. Sumit
    July 27, 2010 at 10:58 PM

    hey. thanx yar its very easy and also working

  13. sanket chaturvedi
    August 14, 2010 at 7:52 AM

    it is verry easy press alt+255 from sanket

  14. Ravi Kumar
    November 25, 2010 at 10:06 PM

    The best blog have ever come across! Must have a look at this guys!

  15. master
    January 14, 2011 at 10:27 PM

    Great Website…

  16. NawabSab
    February 12, 2011 at 5:56 AM

    All tricks are great …… keep it up guys …..

  17. manali khadaria
    March 9, 2011 at 6:32 PM

    thanks guys for these informations

  18. sameer
    March 18, 2011 at 10:21 PM

    guys really brillient

  19. Satish
    March 21, 2011 at 3:34 PM

    Good One……!!!!!

  20. JinS
    July 13, 2011 at 1:02 PM

    Bt…can we remove this folder ‘con’?
    tell me the trick for this…

  21. afghan
    January 30, 2013 at 11:09 AM

    what is the job of con folder, and why v make it? And what is advantage.

  22. Abhineet kashyap
    March 1, 2013 at 6:00 PM

    PLZ try this command go to Run & type CMD then cd\

    fir aap ye type kijiye

    md \\.\c:\con

    aur delete karne ke liye

    rd \\.\c:\con


  23. Shallangs
    March 18, 2013 at 7:45 PM

    Thanks guys for the information..cheers

  24. Priya
    May 10, 2013 at 9:53 PM

    How to create in window 7? Plzzzzzzzzzzzzzzz

  25. Kusum
    October 26, 2013 at 10:39 PM


  26. Vishwadeep singh
    May 26, 2014 at 2:02 PM

    Realy it is very simple

  27. yogesh937
    June 20, 2014 at 10:39 AM

    great job sir

  28. Tarun Kumar
    December 30, 2014 at 2:50 PM

    Actually “ALT + 0160” create a space which we can’t see…

Leave A Reply