Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Delete Stubborn File

18 Jan 2016   #1
chuckhig

Windows 7 Home Premium 64 bit
 
 
Delete Stubborn File

I have tried every un -locker that I could find. Cannot delete this file. It is empty. I cannot move it to my desktop to delete either. Any help appreciated. Thanks.




Attached Images
Delete Stubborn File-snap-2016-01-18-12.00.37.png 
My System SpecsSystem Spec
.
18 Jan 2016   #2
plodr

Home Premium and Pro 32 bit and 64 bit (4 computers)
 
 

I use a small linux distro, Porteus. I have it burned to a CD and also "written" to a USB stick.
I boot into that, send the file in Windows that I'm unable to delete/move/erase/rename and delete it.

Several times I've had 0 byte files that I could see but no program would remove them. Porteus has saved me from having to restore an image just to get rid of something.

If you want the ISO, send me a PM with an email address. I have the file on gdrive and I will email you the link to download it.
My System SpecsSystem Spec
18 Jan 2016   #3
Layback Bear

Windows 7 Pro. 64/SP-1
 
 

plodr could you just post a website to download Porteus?
My System SpecsSystem Spec
.

19 Jan 2016   #4
Taplice

windows 7 Home 64 bit
 
 

The first thing to try is to simply press F5 to Refresh, if you are unable to remove the file using Explorer, you might have better luck using the command prompt.
press windows key + r
type cmd.exe, press enter
cd \to\the\folder\containing\the\problem\file
dir /x
Note the short filename of the problem file. It will look for example like BLAH~1.
del BLAH~1
My System SpecsSystem Spec
19 Jan 2016   #5
UsernameIssues

W7 Pro SP1 64bit
 
 

chuckhig,
Perhaps you have already done this - but before you delete the problematic folder, I would spend some time attempting to make sure that there is no problem with the file system (e.g. run a check of the file system with chkdsk).

Was one of the un-locker apps that you tried named Unlocker? If not, you can read a bit more about it in this old post. It would be interesting to know if any apps are locking the folder.
My System SpecsSystem Spec
19 Jan 2016   #6
chuckhig

Windows 7 Home Premium 64 bit
 
 

Yes unlocker tells me it cannot find file. All I tried cannot delete a file it cannot see. The folder is empty. Thanks..I will keep trying.
My System SpecsSystem Spec
19 Jan 2016   #7
UsernameIssues

W7 Pro SP1 64bit
 
 

Did chkdsk come back clean?

(It can takes hours to run.)

Disk Check

Check Disk (chkdsk) - Read Event Viewer Log
My System SpecsSystem Spec
19 Jan 2016   #8
DavidE

Multi-Boot W7_Pro_x64 W8.1_Pro_x64 W10_Pro_x64
 
 

I found this MS thread that sounds like the same issue.
Renaming folders causes "Item Not Found" error in Windows 7 - Microsoft Community

I would create a system backup image before deleting registry keys, or attempting any fixes.
My System SpecsSystem Spec
19 Jan 2016   #9
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Where "unlocker" applications couldn't detect a handle, deleting stubborn files using either the 8.3 short path naming convention or the long path naming convention have proven quite successful strategies in the past...

Chuckhig, create the below batch file and drag your problem file onto this script.
Code:
if "%~1"=="" exit /b
del /a /f \\?\%1
tskill explorer
goto 2>NUL & del %0
Or if your problem item is actually a folder (as per what your attached image suggests), then create the below instead.
Code:
if "%~1"=="" exit /b
rd /s /q \\?\%1
tskill explorer
goto 2>NUL & del %0
My System SpecsSystem Spec
19 Jan 2016   #10
plodr

Home Premium and Pro 32 bit and 64 bit (4 computers)
 
 

Sure. But be aware that Porteus is a build-it-yourself distro.
You have to pick and choose items to get the distro.

Have fun building: Porteus Wizard
My System SpecsSystem Spec
Closed Thread

 Delete Stubborn File




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Can't delete file due to invalid file name
Hey all! I have a .png file on my secondary hard drive, which I cannot seem to delete. When I try to delete or rename it, it tells me: "The selected file name is invalid or too long". I came across the programs Delinvfile and Unlocker, but they did not seem to work for me. Appreciate any...
General Discussion
File permissions, can't delete file with 0 bytes size
I downloaded a file, didn't download correctly, size = 0 bytes. Reports owner unknown. I can't change ownership, remove file properties, any of that stuff. Can't rename or delete. I'm logged in as administrator but it keeps asking for administrator permission. ?? Another question about...
Software
Unable to delete a file,can't delete it can't shred it,
I looked at my firewall events earlier and i saw a file had been trying to connect to the internet but had been blocked by my firewall. Whenever i install a program i am unsure of i block the exe file from connecting to the internet until i'm happy its a safe program. The file is...
General Discussion
Help file wont delete win 7 says there is no file
I have a download that got interrupted and now have a file with extension .file that cant be deleted. Cleaning software wont catch it, restarting not working either. Havent tried a restore yet
General Discussion
Stubborn Viruses
I've been trying real hard to get rid of a virus, or should I say a couple. I've manged to find and remove some viruses using Forefron Client Security, Spyware Doctor with Anti-Virus, and Malwarebytes, Ad-Aware has been used to. Full scans. I've been at it for multiple days but my laptop still...
System Security


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 23:41.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App