How to Create Undeletable folder using Command prompt?
Did you ever delete your Valuable folder mistakenly and Wondered is there any way to create a folder which neither can be deleted nor be renamed? if Yes, then you are at right place. We are here to Learn how to create a folder in windows which cannot be deleted or renamed using command prompt.
Basic Concept before starting.
The basic concept behind this trick is the using of Keyword. Keywords are reserved words in any programming language that cannot be used as names of variables. Windows also use some keywords in it's programming which cannot be use as variables names. we cannot use these keywords as a folder name or a file name in our computer. Some of them are -
con, aux, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8, lpt9
let's Give a try to this concept. Make a folder or file in windows and try to name it using above keyword. Window will not rename the folder using any of the keyword given above.
Open command prompt:
We can open command prompt or CMD using two ways:
1 » Click the window icon or press window key. search for cmd or command prompt and run it as Administration.
2 » Press Window key + R , A dialog box will open, type cmd in text area to open the command prompt. type cmd and press enter.
Select Drive where to create folder:
We can not create this folder in root directory, where windows is installed. We can create this folder in non rooted drives such as D, E, F etc. I want to create this folder in drive G, so i just need to type G: in command prompt and will press enter, it will take me in drive G.
Create a Undeleteable folder:
Now we are in the drive where we want to create the folder. Type the following command and press enter.
MD stand for make directory - The above command will create the New folder and rename it using keyword lpt3. we can select any above mentioned keyword as a name of the folder.
Try to delete this folder:
Let's try to delete the folder. right click on the folder and delete it. but this trick won't delete the folder. you can delete it hundred times but it will stay there.
How to delete this Undeleteable folder:
It is not possible to manually delete this undeleteable folder. But we can delete it using command prompt. To delete the folder make sure the folder is in the current working directory. Then Type the following command and press enter.
RD stand for Remove directory - The above command will Remove that folder from the computer.