Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 08, 2016, 04:14:02 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Utility to remove file/folder from directory.  (Read 3967 times)

nickedw

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 1
    • View Profile
    • Donate to Member
Utility to remove file/folder from directory.
« on: January 16, 2010, 02:34:25 PM »
A folder is corrupt/infected and points to itself. So subfolder is its own parent. Utility could just purge entry from directory table. Then Diskchk can be used to fix misallocations.

f0dder

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,029
  • [Well, THAT escalated quickly!]
    • View Profile
    • f0dder's place
    • Read more about this member.
    • Donate to Member
Re: Utility to remove file/folder from directory.
« Reply #1 on: January 16, 2010, 09:32:07 PM »
How did this happen? Which filesystem? You're mentioning "infected" - is it possible that the disk structure is OK, but self-pointing is done by a (rootkit) driver?

Poking directly at the file structures isn't something for the faint of heart, especially not if we're talking NTFS which is largely undocumented... and you definitely don't want to do it on a mounted filesystem :)
- carpe noctem

DougalS

  • Supporting Member
  • Joined in 2011
  • **
  • default avatar
  • Posts: 23
    • View Profile
    • Donate to Member
Re: Utility to remove file/folder from directory.
« Reply #2 on: January 02, 2012, 08:14:52 PM »
A folder is corrupt/infected and points to itself. So subfolder is its own parent. Utility could just purge entry from directory table. Then Diskchk can be used to fix misallocations.
You aren't referring to the C:\ProgramData\Application Data in Windows 7 by any chance? This is a (multiple) redirected folder that points to itself (I don't know why, but MS thought it was a good idea). It may be because C:\ProgramData\ is a target of C:\Users\All Users, so legacy apps that use "C:\Users\AllUsers\Application Data" get pointed to C:\ProgramData folder.
There are a lot of redirected folder in Vista/7 (and some even in XP), but I think only Vista/7 have ones that point to themselves.
Cheers