How To Create Folder With Any Name (Con, Prn, Nul, Lpt1~9, Com1~9) in Windows

How To Create A Folder With Any Name in Windows 7, 8 and XP

Everyone knows how to create a folder and rename it. But we fails to create a folder with name CON, PRN, NUL, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, COM1, COM2, COM3, COM5, COM6, COM7, COM8, COM9 in Windows PC. The name are reserved for system.Whenever we try to create a folder with these names we will get some error message as The specific device name is invalid.

Error Message During The Creation Of A CON Folder

On the previous article we discuss about create folder without name and create folder without icon and now we will show you how to create folder with these restricted names (CON, PRN, NUL, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, COM1, COM2, COM3, COM5, COM6, COM7, COM8, COM9). it supports almost all version of Windows after Windows XP SP 2 (Windows XP, Windows Vista, Windows 7, Windows 8, Windows RT). You can also create a folder with any name without using Command Prompt.

Folder With Any Name (CON, PRN, NUL, LPT1~9, COM1~9)

How to create a folder with any name in Windows using Command Prompt (CMD)

1. Open Command Prompt.
2. Type mkdir\\.\[path where to create the folder]\[folder name] and hit enter to create a folder. On the folder name you can add any name from the CON, PRN, NUL, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, COM1, COM2, COM3, COM5, COM6, COM7, COM8, COM9.

Note: Suppose you want to create a CON folder on d:\mercenie folder. Then type c:\>mkdir\\.\d:\mercenie\con on the command prompt (cmd) screen.

3. You will able to create a folder on your desired name.
4. To delete those folder use rd command instead of mkdir on the cmd screen. (e.g. c:\>rd\\.\d:\mercenie\con). You can not delete that folder using delete option of windows.
5. That is it.

Also Check: How to make your data more secure with privacy in Windows PC

Mihir Prasad Mahanta

View Comments

Share
Published by
Mihir Prasad Mahanta

Recent Posts

How to Create Shortcut Key for Any Applications

How to Create Shortcut Key for Any Applications in Windows 8.1 In Windows Operating System,…

7 years ago

How to Create a Recovery Disk in Windows 8.1

How to Create a Recovery Disk in Your System Here we have some information to…

7 years ago

How to Change User PC Name

How to Change User PC Name in Windows 8.1 If you are looking for "…

7 years ago

How to Change User Profile in Windows

How to Change User Profile in Windows 8/8.1 Change your profile photo in Windows 8/8.1…

7 years ago

How to Change Login Screen Background

How to Change Login Screen Background in Windows 8.1 This article provides you information on…

7 years ago

Change Local Account To Administrator Account

How to Change Local Account to Administrator Account in Windows 8/8.1 When you are using…

7 years ago