Saturday, January 5, 2019

Windows - How do I delete corrupted files from a folder?




While deleting some files, few are corrupted and werent deleted because it says they are corrupted.



Just pressing delete is not working neither with del in CMD.



How could I do this via windows explorer or CMD?



Thanks


Answer



This link is the Microsoft canonical reference for dealing with files that cannot be deleted




https://support.microsoft.com/en-us/help/320081/you-cannot-delete-a-file-or-a-folder-on-an-ntfs-file-system-volume



Your circumstance falls under Cause 3




Cause 3: File system corruption is preventing access to the file



You
may not be able to delete the file if the file system is corrupted. To

resolve this issue, run the Chkdsk utility on the disk volume to
correct any errors.



Bad sectors on the disk, other faulty hardware, or software bugs can
corrupt the file system and put files in a problematic state. Typical
operations may fail in a variety of ways. When the file system detects
corruption, it logs an event to the event log and you typically
receive a message that prompts you to run Chkdsk. Depending on the
nature of the corruption, Chkdsk may or may not be able to recover
file data; however, Chkdsk returns the file system to an internally

consistent state.



For additional information about using the Chkdsk
utility, click the following article numbers to view the articles in
the Microsoft Knowledge Base:



176646 Error message: The file or
directory is corrupt...



187941 An explanation of CHKDSK and the New

/C and /I switches



No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...