How to Create Special Reserved Folders in Windows

Hello everyone, hope you are doing well.

In this tutorial, we will learn an interesting Windows trick related to reserved folder names such as:

CON, PRN, AUX, NUL, COM1, COM2, LPT1

Normally, Windows does not allow users to create folders with these names because they are reserved system keywords. However, using the Command Prompt, it is possible to create such folders.

Follow the steps below carefully.


Create a Reserved Folder

Step 1: Open Run

Press:

Windows Key + R

This will open the Run dialog box.


Step 2: Open Command Prompt

Type:

cmd

Then press Enter.


Step 3: Enter the Command

Type the following command in Command Prompt:

md \\.\C:\con

Then press Enter.

You can replace C: with any drive location of your choice.

The folder named con will now be created successfully.


How to Delete the Folder

To remove the folder, follow these steps.

Step 1: Open Run

Press:

Windows Key + R

Step 2: Open Command Prompt

Type:

cmd

Press Enter.


Step 3: Enter the Delete Command

Type the following command:

rd \\.\C:\con

Then press Enter.

The reserved folder will be deleted successfully.


How It Works

Windows blocks certain names because they are reserved device names from older DOS systems. Using the \\.\ syntax allows Command Prompt to bypass the normal restriction and directly access the filesystem.


Important Note

This trick is intended for educational purposes and to understand how Windows handles reserved system names. Avoid modifying system files or directories unnecessarily.

Hope you enjoyed this Windows trick tutorial.

Comments