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

19 Jan 2016   #11
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Try this : Undeletable File - Delete


My System SpecsSystem Spec
.
20 Jan 2016   #12
chuckhig

Windows 7 Home Premium 64 bit
 
 

Quote   Quote: Originally Posted by Pyprohly View Post
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
Sorry..way over my head.
My System SpecsSystem Spec
20 Jan 2016   #13
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Maybe this method is more to your liking:

Undeletable File - Delete
My System SpecsSystem Spec
.

20 Jan 2016   #14
chuckhig

Windows 7 Home Premium 64 bit
 
 

Have been trying your suggestion. Get message cannot find file .
My System SpecsSystem Spec
20 Jan 2016   #15
whs
Microsoft MVP

Vista, Windows7, Mint Mate, Zorin, Windows 8
 
 

Hmm, so it is a ghost file.
My System SpecsSystem Spec
20 Jan 2016   #16
chuckhig

Windows 7 Home Premium 64 bit
 
 

I even attempted the CMD suggestion. I must be trying it bad or something. No luck. I had this problem once a long time ago before this new computer. I was given given a code or something..not sure,but it worked. I know you have to type the correct path with that code,but lost it. I tried to move the folder to my desktop and cannot either. Oh well. The folder is empty...just annoying. Thanks for your help. I will keep looking for an answer.
My System SpecsSystem Spec
20 Jan 2016   #17
UsernameIssues

W7 Pro SP1 64bit
 
 

Did you get a chance to run the check mentioned in post #7?
My System SpecsSystem Spec
20 Jan 2016   #18
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

RE: X-Plane

Is that run from DVD? Or installed on your hard drive?

In any case it seems that the folder is created by the program. I've seen other programs that create folders that cannot be deleted if:

A: The program is not in use.

B: You change the default "Save Location" of a folder that is used by the program.

I know of ways to delete zero byte files/ directories but you need a backp before going ahead.

EDIT:

On the basis that you might want to go ahead:

Create a system image backup that you can restore if needed.

Then read this post:

Cannot delete o byte file that "doesn't exist"

Use PowerTool PowerTool x64 V1.6 for your 64bit machine. Just delete the folder and don't mess about with the other features.
My System SpecsSystem Spec
20 Jan 2016   #19
sgage

Windows 7 Home Premium 64bit
 
 

Have you tried a Linux LiveCD? I've had really stubborn files that were easily dispatched from Linux...
My System SpecsSystem Spec
20 Jan 2016   #20
Pyprohly

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

Quote   Quote: Originally Posted by chuckhig View Post
Quote   Quote: Originally Posted by Pyprohly View Post
[...]
Sorry..way over my head.
It's not "way over your head". I'm sure you've created a file before. And I'm sure you've dragged and dropped a file somewhere before.

Quote   Quote: Originally Posted by chuckhig View Post
I had this problem once a long time ago before this new computer. I was given given a code or something..not sure,but it worked.
That "code" is probably the same one used in the batch file I'm offering you to try.

Well I've gone ahead and created the batch files for you and have attached them here. The instructions are simple: if you want to delete a file, drag and drop it on FileDeleter.bat's icon. If you want to delete a folder, drag and drop the folder on to FolderDeleter.bat.


Edit: Removed attachments. Please see post 9 for the mentioned batch files.
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 13:57.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App