Corrupted files/folders

Posted on Friday, February 08, 2008

A month or so ago my VM completely hard locked. I was working on Graffiti and had just created a category called 'test'. I had no choice but to force the vm closed and reopen. When I booted back up the system ran chkdsk. It fixed a lot of stuff, but 'test' was sititng in that source directory saying 'access denied' when I would try to browse through it. I thought it was no big deal really... who cares about a folder. Well... everytime I go to check in my code, I have to ignore this 'test' folder - it was driving me crazy.

So the folder is corrupted, must be easy to fix...

I tried Unlocker, MoveOnBoot, you name it. Atleast 3-4 other programs. Nothing would delete this damn folder. Finally, I found a command line utility called cacls.exe that is supposed to change the permissions, still didn't work.

Fortunately, there is a gem in the win2k resource kit called subinacl. This little utility worked perfectly to change the permissions back to my user so I could finally delete it. It goes a little something like this:

subinacl /subdirectories "\\?\c:\path\folder\*.*" /setowner=jayme /grant=jayme=f

The test folder can burn in hell.

Jayme

Comments

  • Don on 7.18.2008 at 12:07 PM
  • I had a similar problem trying to delete a corrupted file & folder on a removeable flash drive.

    I tried every normal windows method and explorer, that I could think of as well as several supposedly great utility programs that I was told to try.

    NONE OF THEM WORKED!

    A couple said they ran correctly and even made the file dissappear, but when exiting te folder then going back to check the file, both folder & file were once again there, magically reappearing.

    As the file was also on a removable drive, this created more problems in regards to not being able to even try reformatting without destroying all the preloaded software on it.

    I finally found a solution today, which seemed to work... as both corrupted folder & file no longer appear and seems to have been deleted.

    I used the following:

    1. Open a DOS Command Window.

    2. Type the command "rmdir /S [drive]:[folder name]"

    3. press ENTER

    4. type DIR to see folders remaining (from the root folder)

    this worked for me... hope it helps you and others.

    *note: I tried other DOS commands too, but none worked until this. also note that it will not work without the "/S" included.

    Best regards

    Don

    p.s.

    I tried to share this with others on some boards, but all of them want you to register before psotnig anything... not up to giving out lots of personal info just to post one comment.

    (know what I mean?)

  • ricky on 5.07.2009 at 2:47 AM
  • try the command "rmdir /s /f /s[drive]:[folder name]"

  • piyush on 5.24.2009 at 7:37 AM
  • hi ...i tried a lot...but m unable

    cud u plz do me a favour by writing the cmd line

    i want to delete "april" folder

    its path is "C:\MetaStock Data\april"

    thanks a lot!

  • tukang nggame on 6.11.2009 at 10:28 AM
  • thanks for your sharing. that useful to fix the same problem

  • steve on 6.15.2009 at 9:24 PM
  • @piyush, try this command

    rmdir "C:\MetaStock Data\april"

  • club penguin on 7.05.2009 at 8:53 PM
  • I tried every normal windows method and explorer, that I could think of as well as several supposedly great utility programs that I was told to try.

  • Rusli Zainal Sang Visioner on 7.08.2009 at 12:56 PM
  • this is very interesting. thanks for that. we need more sites like this. i commend you on your great content and excellent topic choices. i'm spreading the good word about this site to all

  • Stop Dreaming Start Action on 7.08.2009 at 12:58 PM
  • accurate, concise, bold! Are you me. thank you and wish a nice day

  • Ace on 8.06.2009 at 2:14 AM
  • I had a problem too, now I have fixed it.

  • best teeth whitening on 8.11.2009 at 2:32 AM
  • Your article is much more informatics for all of the visitor. I am very happy to read it. This is really very nice. Thank you for it.

  • rusli zainal sang visioner on 8.25.2009 at 1:27 AM
  • thanks for that. we need more sites like this. i commend you on your great content and excellent topic choices.

  • online bookmarking on 8.25.2009 at 6:26 PM
  • Great fix. That definitely works. Thanks a lot.

  • stop dreaming start action on 9.03.2009 at 10:15 AM
  • thank you for sharing that problem. that nice sharing for fixing it

  • RUSLI ZAINAL SANG VISIONER on 9.03.2009 at 10:21 AM
  • thank you for sharing it

  • spanish property costa del sol on 9.04.2009 at 12:28 PM
  • . I am very happy to read it. This is really very nice.Thanks for sharing it...

  • la dieta budwig on 9.04.2009 at 12:30 PM
  • Nice informatics shared in this article.Great fix given...Thanks for the sharing..

  • free poker on 9.09.2009 at 9:47 PM
  • This article is going to give me what i'm looking for!

    thanks for the great article, this really nice blog

  • mengembalikan jati diri bangsa on 9.16.2009 at 6:11 PM
  • Your article is much more informatics for all of the visitor. I am very happy to read it. This is really very nice. Thank you for it.

    <a title="mengembalikan jati diri bangsa" href="http://studikomputer.com/mengembalikan-jati-diri-bangsa.html">Mengembalikan jati diri bangsa</a><br/>

    <a title="mengembalikan jati diri bangsa" href="http://gebe.blogdetik.com/kibarkan-bendera-mengembalikan-jati-diri-bangsa/">Mengembalikan jati diri bangsa</a> <br/><a href="http://stopdreamingstartaction.studikomputer.com/kenali-dan-kunjungi-objek-wisata-di-pandeglang.html" title="kenali dan kunjungi objek wisata di pandeglang">

  • quit smoking now on 9.22.2009 at 5:23 AM
  • I tried every normal windows method and explorer, that I could think of as well as several supposedly great utility programs that I was told to try.

  • mengembalikan jati diri bangsa on 9.23.2009 at 9:09 PM
  • wow very useful

  • mengembalikan jati diri bangsa on 9.23.2009 at 9:10 PM
  • hemmm nice posting dude

  • kenali dan kunjungi objek wisata di pandeglang on 9.23.2009 at 9:12 PM
  • so nice

  • how to get pregnant on 9.25.2009 at 6:34 AM
  • This is good site to watch.Atleast 3-4 other programs. Nothing would delete this damn folder. Finally, I found a command line utility called cacls.exe that is supposed to change the permissions, still didn't work.Thanks for shareing the posts.

  • best free music download sites on 9.26.2009 at 2:07 AM
  • Thanks for the useful information, I really like it and think it’s a good topic.

  • best free music download sites on 9.26.2009 at 2:07 AM
  • Thanks for the useful information, I really like it and think it’s a good topic.

  • colon cleanser on 9.26.2009 at 4:58 AM
  • I could think of as well as several supposedly great utility programs that I was told to try.thanks for that. we need more sites like this. i commend you on your great content and excellent topic choices.

  • www.bidz.com on 9.27.2009 at 3:23 PM
  • Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon

  • Dissertation Writing on 9.29.2009 at 9:38 AM
  • Thanks for the useful information, I really like it and think it’s a good topic.

  • forex trading system on 9.30.2009 at 4:38 AM
  • A couple said they ran correctly and even made the file dissappear, but when exiting te folder then going back to check the file, both folder & file were once again there, magically reappearing.As the file was also on a removable drive.

    Regards,

  • Kenali dan Kunjungi Objek Wisata di Pandeglang on 10.02.2009 at 8:53 AM
  • I can here the new knowledge.

    Thanks for the great reference post.

  • moratmarit on 10.02.2009 at 8:54 AM
  • thanks for this usefull informations..

    now i find what i want to know..

    thanks..

  • cah bagoes on 10.02.2009 at 8:55 AM
  • This is actually really interesting regarding your fact article here, This article is very informative.

  • oes tsetnoc on 10.02.2009 at 8:56 AM
  • Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.

  • Trade Show Podiums on 10.02.2009 at 9:48 AM
  • Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts.Any way Ill be subscribing to your feed and I hope you post again soon

  • Trade Show Podiums on 10.02.2009 at 9:51 AM
  • Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon.

    <a href="http://www.exhibeportable.com/items/portable-folding-tables/list.htm">Trade Show Podiums

    </a>

  • wedding dresses on 10.03.2009 at 5:55 AM
  • I tried Unlocker, MoveOnBoot, you name it. Atleast 3-4 other programs. Nothing would delete this damn folder. Finally, I found a command line utility called cacls.exe that is supposed to change the permissions, still didn't work.

  • Free games online on 10.06.2009 at 6:07 AM
  • I had no choice but to force the vm closed and reopen. When I booted back up the system ran chkdsk. It fixed a lot of stuff, but 'test' was sititng in that source directory saying 'access denied' when I would try to browse through it. I thought it was no big deal really... who cares about a folder. Well... everytime I go to check in my code, I have to ignore this 'test' folder - it was driving me crazy.

  • Research Papers on 10.06.2009 at 10:58 AM
  • I could think of as well as several supposedly great utility programs that I was told to try.thanks for that. we need more sites like this. i commend you on your great content and excellent topic choices.

  • Research Papers on 10.06.2009 at 10:58 AM
  • This is actually really interesting regarding your fact article here, This article is very informative.

  • kenali dan kunjungi objek wisata di pandeglang on 10.07.2009 at 9:01 PM
  • great info nice article

  • free games online on 10.09.2009 at 1:51 AM
  • thank you for sharing it

  • Europe Cruise Deals on 10.10.2009 at 5:54 PM
  • Good job, it's difficult to put together articles of this quality, thanks!

  • stubhub fan code on 1.26.2010 at 5:00 PM
  • good work. keep it up..

  • Acai Berry Benefits on 1.28.2010 at 5:23 AM
  • I think all of us here were in need of something like this , thanks for providing writing this post.

  • hp coupons on 2.02.2010 at 8:39 AM
  • well done..

  • hp coupons on 2.02.2010 at 8:40 AM
  • well done.

  • medifast coupons on 2.04.2010 at 2:44 AM
  • good work!

  • panic attack symptoms on 2.09.2010 at 6:00 PM
  • thanks for the share...

  • panic attack symptoms on 2.09.2010 at 6:00 PM
  • thanks for the share...

  • panic attack symptoms on 2.09.2010 at 6:17 PM
  • thanks for the share.

  • quit smoking on 2.15.2010 at 1:05 AM
  • good job

  • grocery coupons on 2.17.2010 at 12:29 AM
  • thanks for the info.

  • Reverse Phone Lookup on 2.23.2010 at 1:22 AM
  • This is a really excellent read for me. Must admit that you are one of the coolest blogger I ever saw. Thanks for posting this useful article.

  • farmville secrets on 2.23.2010 at 9:31 AM
  • thanks.

    If you really want to learn how to grow your farm fast, then check out this Farmville secrets guide today.

  • farmville secrets on 2.23.2010 at 9:31 AM
  • thanks.

    If you really want to learn how to grow your farm fast, then check out this Farmville secrets guide today.

  • Bachelor degree Interior Design on 2.25.2010 at 5:33 AM
  • hello, this is my first time i visit here. I found so many interesting in your blog especially its discussion. keep up the good work.

  • Interior Design diploma on 2.25.2010 at 5:33 AM
  • this is great information that i know a lot of people are interested in, thanks for sharing the code

  • master degree Interior Design on 2.25.2010 at 5:34 AM
  • That's pretty interesting, thanks for the head ups my mate.

  • PhD Interior Design on 2.25.2010 at 5:34 AM
  • hello, this is my first time i visit here. I found so many interesting in your blog especially its discussion. keep up the good work.

  • nursing doctorate degree on 2.25.2010 at 5:35 AM
  • Nice article, i like it. thank you

  • nowGoogle.com adalah Multiple Search Engine Popular on 3.01.2010 at 2:38 AM
  • nice to be here.... thanks for share

  • reverse email search on 3.01.2010 at 9:52 AM
  • thanks.

  • reverse email search on 3.01.2010 at 9:52 AM
  • thanks.

  • Activekita on 3.02.2010 at 12:20 PM
  • This is a new science for me, thanks...

  • nowGoogle.com Adalah Multiple Search Engine Popular on 3.05.2010 at 9:15 AM
  • I love to read more stuff like this.

  • nowGoogle.com Adalah Multiple Search Engine Popular on 3.05.2010 at 9:53 AM
  • I really appreciate sharing this great post. Keep up your work.

  • nowGoogle.com Adalah Multiple Search Engine Popular on 3.05.2010 at 9:54 AM
  • Any way I'll be subscribing to your feed and I hope you post again soon.

  • nowGoogle.com Adalah Multiple Search Engine Popular on 3.05.2010 at 9:56 AM
  • thanks for providing writing this post.

  • nowGoogle.com Adalah Multiple Search Engine Popular on 3.05.2010 at 9:59 AM
  • accurate, concise, bold! Are you me. thank you and wish a nice day. :)

Leave a Comment


Search this site

Last 3 Tweets

  • The Courier looks insanely cool... i am very impressed.
  • @hkarthik or a badass PC desktop. they still have a good purpose :)
  • @JustinEtheredge woah. that sounds like a real gem there... lol