The MASM Forum Archive 2004 to 2012

Miscellaneous Forums => The Orphanage => Topic started by: xanatose on December 08, 2011, 02:20:23 AM

Title: Git a glitch on one file and cannot delete it.
Post by: xanatose on December 08, 2011, 02:20:23 AM
I got a .pdb file created by visual c++ compiler that does not want to be deleted.

Usually, when this happen, I just take ownership of the file and then delete it. But this one says "cannot display owner" and does not let me take ownership. Not even when logged as Administrator.

Besides formating the computer and reinstalling windows. What are my alternatives to get rid of this pesky file?
Title: Re: Git a glitch on one file and cannot delete it.
Post by: anunitu on December 08, 2011, 02:55:27 AM
There is a program named unlocker that might help,but not always. The best way I always liked was a clean dos boot disk(you can do that from CD now) and delete it under pure DOS
Title: Re: Git a glitch on one file and cannot delete it.
Post by: dedndave on December 08, 2011, 03:18:16 AM
you can also use HiJackThis to delete a file on reboot
Title: Re: Git a glitch on one file and cannot delete it.
Post by: hutch-- on December 08, 2011, 11:17:17 AM
I have occasionally had the problem and while Unlocker works fine on files locked by the system or sometimes by something in the registry, file delete errors tend to be file system errors which you can generally fix by running CHKDSK on the drive.
Title: Re: Git a glitch on one file and cannot delete it.
Post by: sinsi on December 08, 2011, 11:40:52 AM
Yes, first chkdsk /r just to make sure the drive isn't cactus.
If that doesn't work get a linux livecd, boot from it then delete the file.

The only time I couldn't take ownership was when I installed hyper-v to dual boot, when I removed it there were files left that would not delete.
I ended up formatting then reinstalling, mainly because there were lots of files left by hyper-v (me lazy) and I wanted to reinstall anyway (six months were up).
Title: Re: Git a glitch on one file and cannot delete it.
Post by: clive on December 08, 2011, 05:38:30 PM
Can you rename it?