Create A Undeletable And Unrenamable Folder

How To Create A Undeletable And Unrenamable Folder



Windows have some reserved words for folder names: con,aux, lpt1, lpt2, lpt3 up to lpt9. It will not allow you to create folders using any of these names. Try creating or renaming any folders with these names and Windows will throw out an error message that The specified device name is invalid (see below).

These keywords are used by Windows itself for some of its important Windows files and folders. If you find any file/folder with the above names in Windows directory, you can’t delete or rename them (try it!).
So, your folder name should be one of these windows reserved names to make it undeletable and unrenamable. As you can’t create it directly on Windows, a way to get such kind of folder is to search out your computer’s Windows directory, copy it somewhere and delete available content to insert your own material but this would be a tedious task. So I have covered an easy trick below to get such kind of folders.

How to Create It?

Try to make a new folder in windows & give it name con,aux, lpt1, lpt2, lpt3 up to lpt9. you won't be allowed to create folder with above mentioned names, Because they are reserved words in windows.
  1. Press windows button+r.
  2. Type cmd & hit enter (this will open command prompt window).
  3. You can’t create such folders in root drive i.e., where Windows is installed. So, if your Windows is installed in C: drive, type D: or E: in command prompt.
  4. Type md con\ and hit enter (md - make directory)
  5. Now browse to the location (D: drive) and you’ll see a folder just created there with name con. You can use any of the windows reserved keywords  such aux, lpt1, lpt2, lpt3 up to lpt9 to create folders with these name through command prompt.
    Try to delete that folder or rename that folder windows 
    will show the error message.

How To Delete That Folder?

when you are done with your work you don't want tis folder anymore then you can delete it. It is not possible to delete that folder manually but you can delete this folder by another way mentioned below.
  1. Open Command Prompt
  2. Type D: or E: ( in which you created) & hit enter
  3. Type rd con\ (rd - remove directory)


Open that directory and the folder will not appear because it is removed.


Thank You

Comments