Create a folder and use some of the tricks on that folder, at least you will have a folder which is neither deletable nor renamable. Yes, this is true that you can create a folder in your windows computer which cannot be deleted or rename.
If you are one of those seeking fun with friends then this trick is the correct choice to have fun with your friends, however this trick is not only for fun but also you are protected from any data loss, there are many such conditions and situation occur at the time of using your own computer i.e, deleted all the folder by mistake but you cannot delete your protected folder even intentionally.
To know the trick to protect your computer folder then just follow the below steps that how can you create a folder that cannot be deleted or renamed. Step starts from CMD as Command Prompt from your computer to know more have a look on below steps.
Step1. Open CMD as Command Prompt. (Go to Start and type CMD)
Note: After this step make sure that you will not select a root directory, means, you can create folder only on nonrooted Drives such as D, E, F, G not the C drive because you have installed your windows on that Drive.
Step2. Open CMD and type E: and hit enter.
Select Your Desire Drive I have selected E:
Step3. Now type md con\ (MD represent Make Directory) Hit enter.
Note What We Use con?: Files may be copied to devices.
For example, copy file con outputs file to the screen console. Devices themselves may be copied to a destination file, For example, copy con file takes the text typed into the console and puts it into FILE, stopping when EOF (Ctrl+Z) is typed.
Now Type md con\
Note: You just created a new folder on E Drive, just check it out whether it worked or not, Confirm? OK if yes that means you created a folder, now delete that folder to make sure it is working as undeletable as Title of the tutorial mentioned, now put some folders and music files under con and again try to delete con folder if you see no changes that mean it worked on your computer.
Now Check Your Computer Drive
Now how to delete the undeletable folder? Follow below steps again!
Step. open your CMD again, type E: hit enter and again type rd con\ (Remove Directory) hit enter.
To Delete The Same Folder Type rd con\
Your file is deleted. everything is fine just put the value or code correctly and you got what you want. Just make sure whether you are a programmer of not typing a perfect code is the only genuine work, if you mislead or mistype your code then it will not perform.