• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

Sign in to follow this  

0 kb file

Recommended Posts

davydizo    0

file becoming 0 kb how to solve

how to solve 0 kb file 

Share this post


Link to post
Share on other sites
Brandon H    2,864

I've seen a similar thing a few times. Worst case scenario you may need to format the drive to get rid of the bugged file entry.

 

Sometimes you can run a SFC -Scannow or a chkdsk to scan the drive for errors and it will correct from inside Windows

Sometimes you can boot into a Linux Live distro and delete the file from there

 

if neither of those work then it may truly be a ghost file left over and I have no idea where those entries are stored in the partition table which is why a format ends up being easier :/

Share this post


Link to post
Share on other sites
davydizo    0

ok thanks for that how try to do so

Share this post


Link to post
Share on other sites
shockz    5,448

robocopy usually takes care of corrupt files for me.

 

Hopefully it's not on the root of C:\, I found this blurb on google a long time ago, wish I could credit whoever wrote it up, but it hasn't failed me unless the drive is on its way out:

 

Quote

Create a blank folder somewhere, for example:
C:\Blank_Folder\

Now lets say all of the junk you want to delete is located here:
D:\Keep\Keep\DESTROY\****\***.... etc .etc ..etc...

You're going to use robocopy to Copy that blank folder over top of the DESTROY folder... with /E for subfolders and files... with the /MIR switch which will purge anything that is not in the source (there is nothing... its a blank source)


robocopy c:\Blank_Folder\ D:\Keep\Keep\DESTROY\ /E /MIR  

I see no reason why that wouldn't get the job done. Everything in the DESTROY folder and it's subfolders will be purged 

 

 

You can also do some real damage if you don't pay attention to detail with above quote, make sure you back up or move any important data out of the affected directory, but this has solved files that couldn't be deleted, moved, etc etc etc.
 

If that doesn't work, good luck.

  • Like 1

Share this post


Link to post
Share on other sites
Brandon H    2,864

^ nice never thought about that before. I knew RoboCopy was powerful but never delved into it myself yet

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.