GeekPolice Tech TutorialsLog in

 

How to create Undeletable and Unrenamable folder

Share

20170920
How to create Undeletable and Unrenamable folder

How to create Undeletable and Unrenamable folder?
Most of the peoples are not aware that it is possible to create Undeletable, Unrenamable folder in windows without any software. In this tutorial you will learn cool and simple trick to create an undeletable and unrenamable Folders In Windows operating system.

You cannot create Undeletable and unrenamable folder in root directory (i.e. where the windows is installed), that means you can't make this kind of folder in C: partition if you have installed the Windows on C: partition.

If you try to make a new folder in windows and give it a name con, aux, lpt1, lpt2, lpt3 up to lpt9. You won't be allowed to create folder with above mentioned names, Because they are reserved words in windows.

So, your folder name should be one of these windows reserved names to make it undeletable and unrenamable. There is a very simple Windows Command Prompt trick which will help you achieve your aim i.e., “provide only viewing rights to your content and block delete and rename actions from those folders” without using software or script at all.

Follow below instructions to create undeletable and unrenamable folder:

1. Open the Command Prompt by clicking Start Menu --> All Programs --> Accessories, right-click on Command Prompt, and open it as an administrator. In Windows 8, 8.1 and Windows 10 simply hold down the + X keys and select the option “Command Prompt (Admin)” from the menu.



2. Use [c]Cd[/c] command to navigate to folder where you want to create undeletable and unrenamable folder. For example i will create the undeletable folder at C:\Users\FreeBooter folder, i would enter below command to navigate to this folder:


Code:

Cd C:\Users\FreeBooter




3. Type following command:

Code:

Md con\




Above command will create a folder named con at C:\Users\FreeBooter folder path. You can use any of the windows reserved keywords such aux, lpt1, lpt2, lpt3 up to lpt9 to create folders with these name through command prompt.



If you double click the con folder you will receive following error message.



This con folder cannot be access but you can copy/paste any file you want in it to keep it hidden and only way to view its content is to use below command:

Code:

Dir con\




You can only manage this folder content from Command Prompt.



How to delete Undeletable/Unrenamable folder?

So, if you have done with the required task with these undeletable-unrenamable folders and want to delete them, you can’t delete them manually as Windows will not allow. So, deleting undeletable-unrenamable folders will also be done from Command prompt. Follow these steps to delete undeletable/unrenamable folders from Command Prompt:

1. Open the Command Prompt by clicking Start Menu --> All Programs --> Accessories, right-click on Command Prompt, and open it as an administrator. In Windows 8, 8.1 and Windows 10 simply hold down the + X keys and select the option “Command Prompt (Admin)” from the menu.



2. Use Cd command to navigate to folder where you have created undeletable folder.

3. Type following command:

Code:

Rd  /s  /q  con\




Above command will delete con folder including its content.

remove_circleSimilar topics

Comments

No Comment.
Permissions in this forum:
You cannot reply to topics in this forum