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.
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.
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:
- Open Command Prompt.
Press Win Logo Key + R. Then type 'cmd' and Hit Enter.
- Now type the following command:
For Example, if you want to create a folder named CON on desktop then typemkdir \\.\path of folder of your choice\RESERVED_WORDmkdir \\.\C:\Users\UserName\Desktop\CON
Change UserName with your username.
- After typing the above command hit Enter & you will see 'CON' folder on your desktop.
Deleting a Folder with Reserved Name(CON, PRN etc.):
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
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