Introduction: CMD Tricks: Make Un-Deletable Folders!
Have you ever wondered how you can make a folder which neither can be deleted nor be renamed. Well, if you have, then you have come to the right place. With this trick, you will be able to create folders in Windows which cannot be renamed or deleted.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: The Concept
The basic concept behind this trick is the use of Keywords. Keywords are reserved words in any programming language that cannot be used as names of variables. Windows also uses certain keywords in its programming. Some of them are con, aux, lpt1, lpt2, lpt3, lpt4, lpt5, lpt6, lpt7, lpt8 and lpt9.
Even if you try to make, you wont be able to.
Step 2: The Trick
So the question arises, how can we make a folder with a keyword as its name? The solution to this problem is included in Windows itself. As we know that Windows has evolved from D.O.S.(Disk Operating System), its commands can be used in Windows.
1) Click on Start.
2) Click on Run. Type in "cmd" without quotes.
3) In the Command Prompt Window that opens, type the name of the drive you wish to create your folder in the format : and press Enter. e.g. If you wish to create the undeletable folder in D drive, type "D:" without the quotes. Note that the folder cannot be created in the root of C: drive (if C: is your system drive).
4) Type this command- "md con\" or "md lpt1\" without the quotes and press Enter. You can choose any of the keywords given above as the name of your folder.
Now you are done! You've successfully made a folder which can't be deleted at all!
Step 3: Deleting the Folder (If You Made by Mistake)
You can'y manually delete the folder so this is another tick to do so!
Although, it is not possible to manually delete the folder, you can delete the folder by typing "rd con\" or "rd lpt1\" in Step 4 instead of "md con\" or "md lpt1\".
Congrats! You made your own un deleteable folder! Now troll your friends with this!