I can't delete a file, it's in use by the system... But it isn't

3

Possible Duplicate:
I can't delete a file - even when using unlocker

I tried all the tools from the question How do I delete a 'locked' file?, and they didn't help.

All the software suggested to download attempted to unlock my file, but they all failed. Additionally, booting into safe mode still didn't solve my problem.

When I try to delete the file (an ISO image that I created of the Windows 8 Install Checker), I get this error:

Error

I obviously can't end System.exe, that'd crash my computer. I've been trying to remove it daily, and it won't let me delete it, even right after a restart.

It's stored on my desktop, and I can't move it, because I get that error.

Jon

Posted 2012-08-07T19:28:13.547

Reputation: 8 089

Question was closed 2012-10-02T13:04:33.550

@slhck none of the other answers worked, so I flagged for re-opening. Thanks for bringing that post to my attention, though, I didn't find it earlier! At least I now know what won't help. – Jon – 2012-08-07T19:43:49.687

2Please include more information that just "it didn't work". This'll provide valuable information for others in attempting to solve your problem. – Daniel Beck – 2012-08-07T19:45:17.560

Is only this one file affected or other files as well? What types of files are affected? Only .iso? Are all files on the same partition? Maybe even the same folder? – Der Hochstapler – 2012-08-07T20:07:32.950

Only this exact file. The .iso is a iso version of the Windows 8 install checker, so it doesn't run (I didn't understand what the iso would do when I made it). – Jon – 2012-08-07T20:16:39.163

1You said you tried all the suggestions from the other answer. When you run Process Explorer, make sure you run File -> Show Details for all Processes. Then search for win8install.iso (Ctrl+F). Does it find anything? If so, what process/service does it highlight? – Der Hochstapler – 2012-08-07T20:31:45.990

Answers

2

You can schedule the file to be delete the next time you boot. It will be deleted early in the boot process, before any programs access it. I prefer BitSum’s tool movelater; for example:

movelater C:\Users\Chippery\Desktop\win8install.iso /d

You can also use Sysinternal’s MoveFile:

movefile C:\Users\Chippery\Desktop\win8install.iso ""



That takes care of the file, but that it is always locked by the system process when you boot indicates an ongoing usage which may cause problems if you delete the file and the system tries to access it.

Because the system process is the one locking it, it is likely a driver that is using it. Because it is an ISO file, it seems that you have mounted the disc image in a program that is using a driver to emulate a CD/DVD.

As curmil suggested, it is best if instead of just forcing a delete of the file on boot, you run the mounting program and unmount the image and you should find that the file is no longer in use. If it is, then a reboot should free it up, without needing to resort to the above tools.

Synetech

Posted 2012-08-07T19:28:13.547

Reputation: 63 242

Thanks, I'll try this. Do I run it in a .bat file? Using it in cmd says that movefile isn't a recognized command. – Jon – 2012-08-07T21:26:04.063

No, the command-line is fine (though you will probably have to open an admin one). They are not built-in commands, you need to download the tools. – Synetech – 2012-08-07T21:36:29.403

So did you try it? – Synetech – 2012-10-03T18:17:07.977

4

Is it possible that you've accidentally mounted the ISO to a virtual drive? If so you might just need to unmount it before trying to delete or move the file.

curmil

Posted 2012-08-07T19:28:13.547

Reputation: 615

You may have double clicked on the iso file or right clicked iso file and mounted it (or opened it). This is like opening a zip file with WinZip and trying to delete the zip file when it is still opened. To close or unmount the opened or mounted iso file, in Windows Explorer go to My Computer and if you see a drive "E:" then right click that drive and unmount or close it. The i – curtisp – 2016-11-08T18:43:24.650

1

If nothing else works, linux live cd/usb is definitely an option. Boot up a Linux live USB and just deleted from there.

kranberg

Posted 2012-08-07T19:28:13.547

Reputation: 119

I got an error about Babylon.E_3 (Adware) from your link. -1 – jcollum – 2015-04-03T22:16:29.913

@jcollum - lol, quite possible after 2-3 years. Removed the link and updated the answer. – kranberg – 2015-04-15T21:15:32.753

That doesn't help. – Jon – 2012-08-07T19:31:42.187

What I did when shooting down all processed didn't work - I booted up a Linux live USB and just deleted from there. If nothing else works, that's definitely an option. – kranberg – 2012-08-07T19:38:11.360

@kranberg Turned your comment into part of your answer so you can get votes if it works – Canadian Luke – 2012-08-07T20:21:13.733

@kranberg That's why I figured I'd add it for you – Canadian Luke – 2012-08-07T21:19:10.137

1

You can try with disabling the virtual drive listed in the device manager or if you can change the extension to something different could help you to delete that file.

Hope it helps.

Ahmed Bilfaqih

Posted 2012-08-07T19:28:13.547

Reputation: 1 844

1In Windows 10 - If you are using Hyper-V it will also lock the ISO files, and they will appear as in use by System. This is fixed by un-mounting the ISOs in Hyper-V Manager. – IceMage – 2016-01-06T18:40:05.137