Thursday 2nd of September 2010

How to make an undeletable folder

April 1, 2009 by Ivan  
Filed under Articles, Windows Tips

It probably happened once, that someone deleted a folder ,which is containing a few hundred files and was very important.If you’d like to avoid anything similar happening in future.You can protect your important folders by making them undeletable. Here is simple tip, which can help you.

1)Open cmd ( Type in Run option cmd or navigate to All Programs->Accessories-> Command Prompt)
2)In cmd change to the directory that you want,I change to E.Just type E: and enter.If you don“t know how change directories with Cmd, here is post where I wrote about it

How to make an undeletable folder


3)Type md \lpt1\\ and press enter, the folder will now in your E:

How to make an undeletable folder

4)If you try to delete or rename it, it will appear error message

make file undeletable

How to delete undeletable folder?

Just go to cmd Navigate to the directory and type in rd \lpt1\\

make file undeletable



Best of PC Hacks

Related Posts



You can get our articles in your email inbox each day for free. Just enter your email below:

FeedBurner

Comments

25 Comments on "How to make an undeletable folder"

  1. param mohite on Fri, 3rd Apr 2009 10:05 pm 

    it is not competable with ntfs partition, folder can be deleted, i have tryed and suceed

  2. Ivan on Sat, 4th Apr 2009 12:02 pm 

    @param mohite
    Thanks a lot for the useful information

  3. Sairam on Fri, 24th Apr 2009 6:54 am 

    Thanks .. Going to test it now … and Can I share this information to others ? Let me know ..

    Waiting your earliest reply ..

  4. Ivan on Fri, 24th Apr 2009 2:46 pm 

    @Sairam
    Sure,you can share all information from PC Hacks , but , please don’t copy the full article,
    Check this http://hackspc.com/copyright-policy/

  5. Hank on Sun, 10th May 2009 6:45 pm 

    it didnt work on my xp. i tried and the folder was deleted. so i tried again, and still it was deleted, so it wont work

  6. Eriq on Sat, 30th May 2009 5:38 am 

    “md” command is creating a folder at a specified location.
    so…. you are not changing its directory, you are making creating folder with the same name in other directory…
    I’ve tried it

    How to make an undeletable folder
    April 1, 2009 by Ivan
    Filed under Articles, Windows Tips

    but it is not working

    thanx

  7. johny on Sat, 6th Jun 2009 6:16 am 

    like it

  8. Sakura on Fri, 21st Aug 2009 11:48 am 

    its not working ..it states error occurred while processing

  9. ant on Wed, 23rd Sep 2009 10:26 am 

    i like your helpful mind and thank you very much .

  10. sai on Mon, 28th Sep 2009 2:22 pm 

    Hi…….Thanx for the tip and what is the use of the lpt1 option…Will u explain plssssssssssssssssssss

  11. thaufeeg on Thu, 5th Nov 2009 5:30 am 

    it can’t work. but it can delete it from cmd

  12. KurtisLowedown on Tue, 2nd Feb 2010 8:54 am 

    Ok, so the creation of the folder is easy. But when I enter the eraseure command, “rd \lpt1\\” (minus the quotes, obviously) it tells me the directory is not empty. When I hover over the folder in the windows window, it says there are 6.00kb worth of something there, but there are no files in the folder, hidden or otherwise. They were removed. So, wtf? I can’t delete it, and I need to erase my tracks. I can’t move the directory, either, for some reason unknown to me. WTF?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!

  13. Tausif on Wed, 24th Feb 2010 4:32 pm 

    Thanks, thats really good

  14. Sachin on Sun, 14th Mar 2010 5:49 pm 

    good good :)

  15. aylian on Tue, 16th Mar 2010 10:44 am 

    it is not working

  16. wajid on Fri, 2nd Apr 2010 10:54 pm 

    i check it. it is best for saving our personal docement
    and thanks for giving tip.

  17. seedrom193 on Thu, 8th Apr 2010 10:18 am 

    wow, cool thank you but i have a queation if i format my computer . the folder still ?????!

  18. Anshu on Fri, 9th Apr 2010 7:57 am 

    hey i did the same in windows xp . but thr folder could be deleted easily :-S

  19. rahul jain on Thu, 22nd Apr 2010 2:12 pm 

    CAn anyone please tell me the correct method to make undeletable folder..

  20. HackGod on Fri, 23rd Apr 2010 6:44 am 

    This makes sense only with the lpt1 folder name. No other folder name works. You have to keep the folder name same. It does work on ntfs Partiton. It’s of no use because u cant copy or change anything in the folder. Still.. hack appreciated brother.

  21. man88 on Sun, 30th May 2010 1:13 pm 

    hi thnx 4 the information but do we can change the name of the undeletable folder

  22. man88 on Sun, 30th May 2010 1:14 pm 

    i mean by the cmd

  23. Pradumna on Mon, 31st May 2010 10:14 am 

    awsome tip buddy…its working ….Thanks!!!!!

  24. Yckho on Sun, 4th Jul 2010 5:10 am 

    There is one that i think is best but too bad, work on win98 and ME only… just go to command prompt then rename your folder like for example I made a folder named Joy:

    C:/ren joy joy(then press Alt+255) and enter..
    there in can’t be open and can’t be deleted… you can try any numbers but make sure to remember it otherwise sorry and goodbye…
    to open the folder just rename again

    C:/ren joy(then press Alt+255) joy
    there it is open again

  25. Shakti on Sun, 25th Jul 2010 3:13 pm 

    It reailly work
    & so funny trik

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!