Creating Undeletable Folders in Windows: A Simple Guide
O
Ohidur Rahman Bappy
MAR 22, 2025
Creating Undeletable Folders in Windows
In this tutorial, you'll discover a fascinating trick to create folders that are undeletable, indestructible, and unrenamable in Windows. Surprisingly, you can do this without any additional software! Follow these steps to test it out.
Why Certain Folder Names Don't Work
Try to create a folder named con
, aux
, or any lpt
followed by a number (like lpt1
, lpt2
, up to lpt9
). You'll find that Windows won’t allow it. These are reserved words in the system.
Steps to Create an Undeletable Folder
- Open your Start menu and select Run.
- Type
cmd
and press Enter. - Note: You cannot create an undeletable folder in your root directory (e.g., if Windows is installed on
C:
drive, avoid using it). Choose another drive likeD:
orE:
. - In the command prompt, type
D:
(or the drive of your choice) and press Enter. - Enter the command
md con\
and hit Enter (md
stands for make directory). - You can use other reserved words like
aux
,lpt1
, throughlpt9
instead ofcon
. - Navigate to the directory, and you’ll find a folder named
con
. - Attempting to delete or rename the folder will result in an error.
Removing the Undeletable Folder
- Though manual deletion isn’t possible, you can remove it using these steps:
- Open Command Prompt again.
- Navigate to the drive with the folder using
D:
and press Enter. - Type
rd con\
(rd means remove directory) and hit Enter. - The folder should disappear from the directory.
And there you have it! This simple trick makes it easy to manipulate folder creation in Windows. Thank you for reading!