Thursday 1 May 2014

Create 'CON' Folder in Windows

CON is a reserved keyword used by DOS (Disk Operating System), So it is not possible to create a folder named CON or Con. If you try to create a folder with any of these names Windows shows an error.

Here are some more keywords that are reserved by DOS:
CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9

But you can force Windows/DOS to create this folder for you. You can use this trick to create a folder named CON or any other reserved keyword from above list. 
  
                                       Create 'CON' Folder in Windows
   

NOTE: It is advisable not to do so, as it might result in your system becoming unstable.Use this tutorial for knowledge purpose only.

Tutorial:

  1. Open Command Prompt.
    Press Win Logo Key + R. Then type 'cmd' and Hit Enter.

                                  Create 'CON' Folder in Windows
     
  2. Now type the following command:
    mkdir \\.\path of folder of your choice\RESERVED_WORD
    For Example, if you want to create a folder named CON on desktop then type
    mkdir \\.\C:\Users\UserName\Desktop\CON

    Change UserName with your username.
     
                          Create 'CON' Folder in Windows
      
  3. After typing the above command hit Enter & you will see 'CON' folder on your desktop.
     
                                                 Create 'CON' Folder in Windows

Deleting a Folder with Reserved Name(CON, PRN etc.):

                                         Create 'CON' Folder in Windows

You can't delete a folder with reserved name. So, to delete this folder type the following command in Command Prompt:
rmdir \\.\Path of Folder\RESERVED_NAME(Folder Name)
For example, If I want to delete the folder that i made above, i will give the following command:
rmdir \\.\C:\Users\UserName\Desktop\CON

                              Create 'CON' Folder in Windows

NOTE: Do not make this folder in your C: Drive or any drive that have OS installed. It might cause serious problems.

If you need any kind of help related to this trick then comment below. Also share your views related to this trick.

No comments:

Post a Comment