logo

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

  1. Open your Start menu and select Run.
  2. Type cmd and press Enter.
  3. 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 like D: or E:.
  4. In the command prompt, type D: (or the drive of your choice) and press Enter.
  5. Enter the command md con\ and hit Enter (md stands for make directory).
  6. You can use other reserved words like aux, lpt1, through lpt9 instead of con.
  7. Navigate to the directory, and you’ll find a folder named con.
  8. Attempting to delete or rename the folder will result in an error.

Removing the Undeletable Folder

  1. Though manual deletion isn’t possible, you can remove it using these steps:
  2. Open Command Prompt again.
  3. Navigate to the drive with the folder using D: and press Enter.
  4. Type rd con\ (rd means remove directory) and hit Enter.
  5. 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!