Creating undeletable and unrenamable folders in windows is vital for avoiding unauthorized access to folders that contains the confidential information. With this trick, you will be able to create folders in windows which cannot be deleted or renamed.
![]() |
How to create undeletable and unrenamable folders in windows? |
Folders can be prevented from unauthorized access, by locking the folders with the password and hiding the folders by using computer tools. But these actions can prevent strangers from viewing the content, but cannot deny them from deleting the folders.
Creating undeletable folders and unrenamable folders cannot restrict the strangers from viewing the files but can restrict them from their suspicious activities like deleting or renaming the folders.
To commence this, you need to know some keywords in Windows programming like con, aux, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8 and lpt9. These keywords are restricted to use for naming the folders.
![]() |
creating undeletable and unrenamable folders in windows |
This is the reaction you end up if you try to do so. So, Windows will not allow renaming the folders with any of the keywords listed above.
But using these keywords as folder names you can create undeletable and unremovable folders in Windows. But this contradicts the facts that keywords cannot be used for naming folders. But Windows answer the contradiction through its command prompt. Since the above keywords are DOS (Disk Operating System) commands and you know that Windows evolved from DOS, these commands can be used as folders names by using the command prompt.
Create Undeletable and Unrenamable Folders in Windows:
Creating undeletable and unrenamable folders involves the use of Window keywords like con, aux, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8 and lpt9 as folder names through command prompt.
Step1. Click Windows + R keys to open Run Command.
![]() |
undeletable folders and unrenamable folders in windows |
Step2. Type cmd in the empty field of run command and Press enter.
Step3. Window command prompt opens up. In the command prompt windows that open up type the name of the drive, you wish to create undeletable and unrenamable folders in Windows. Select the drive by typing D: or E: or F: except C drive and press Enter.
![]() |
undeletable and unrenamable folders in windows |
Note: Remember that C drive cannot be used for creating any undeletable and Unrenamable folder because it is the root directory of storage where Windows is installed.
Step4. Now type md con\ and press enter (here md stands for make directory). You can use other keywords like aux, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8 and lpt9 as folder names.
![]() |
undeletable folders unrenamable folders windows |
Step5. Windows will create an undeletable, unrenamable folder with the keyword con in the drive you entered in step3.
![]() |
undeletable and unrenamable folder created in windows |
Step6. Now try to delete the folder or rename folder that was created with the keyword con.
![]() |
undeletable and unrenamable folders in windows |
The file cannot be renamable, it shows message Invalid file handle. Also, try to delete the folder manually, the folder cannot be deleted.
This is how you can create the undeletable and unrenamable folder in windows and secure your personal data from unauthorized access.
How To Delete that Undeletable Folder:
It is not possible to delete the folder manually; you can delete the folder created by using keywords with the help of command prompt commands.
Procedure to delete the folder that was created using "con" Window keyword
Step1. Open the command prompt: use Windows + R to open run command and type cmd in the empty field and click enter.
![]() |
undeletable folders and unrenamable folders |
Step2. In the opened Command prompt type drive name where you created the folder. For example, if your folder drive is F, type F: and press enter.
![]() |
create undeletable and unrenamable folders windows |
Step3. Type rd con\ and press Enter. (Here rd means remove directory)
![]() |
deleting undeletable folders with command prompt |
Step4. If you check your drive the folder you created is deleted.
Hope you like the post, please share it with your friends on social networks and leave a comment below if you are facing any problem at any step in the method discussed above.
0 comments: