Have you ever wondered how you can make a folder which neither can be deleted nor be renamed. With this trick, you will be able to create folders in Windows which cannot be renamed or deleted.
The basic concept behind this trick is the use of Keywords which 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.
The basic concept behind this trick is the use of Keywords which 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.
To test this concept, make a new folder in Windows and try to give it a name same as any keyword suggested above.
Windows will not rename your folder to any of the keyword given above.
As we know that Windows has evolved from D.O.S.(Disk Operating System), its commands can be used in Windows. You can use D.O.S. Programming in Windows to create a folder with a keyword as its name using the steps given below:-
Windows will not rename your folder to any of the keyword given above.
As we know that Windows has evolved from D.O.S.(Disk Operating System), its commands can be used in Windows. You can use D.O.S. Programming in Windows to create a folder with a keyword as its name using the steps given below:-
- Click on Start.
- Click on Run. Type in "cmd" without quotes.
- In the Command Prompt Window that opens, type the name of the drive you wish to create your folder in the format <drive-name>: and then 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). - 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 Windows will create an undeletable and unrenamable folder in the drive. However the folder can be renamed to another keyword using Windows Explorer.
- Deleting the Folder
And you are dOnE..............