Staredit Network > Forums > Technology & Computers > Topic: Can't delete a file
Can't delete a file
Mar 31 2009, 4:29 am
By: Souma  

Mar 31 2009, 4:29 am Souma Post #1



I have a file on my desktop that got messed up with the Firefox download. When you download, Firefox creates a file called .part as well. Lost the internet while I was downloading, now that .part file won't delete. I get an error saying: "Cannot delete file: Cannot read from source file or disk". I can't move it, rename it, do anything to it.

Any way to delete it? :unsure:



None.

Mar 31 2009, 4:40 am Falkoner Post #2



Is Firefox open when you're trying to delete it? Use ProcessExplorer to delete any handles on it from other programs, also, have you tried logging on and off, or restarting explorer? The file might just appear to be there.



None.

Mar 31 2009, 5:08 am Souma Post #3



I tried with Firefox open and while it's closed. The file has been sitting there for days, hoping it would just disappear after some restarts. I tried ProcessExplorer and didn't find any handles linking to the file. How do I restart explorer?

Post has been edited 1 time(s), last time on Mar 31 2009, 11:48 am by Souma.



None.

Mar 31 2009, 3:50 pm Falkoner Post #4



Just end explorer.exe in Task Manager and then run it again.

Also, you might want to check your actual Desktop folder and see if the file is in there as well.



None.

Mar 31 2009, 4:53 pm Lt.Church Post #5



if it isnt big like only a few KB you could always just set it to hidden and ignore it, then sometime in the future youll turn on view hidden and see it then youll be able to delete it because over time w/e having it open has ended :D



None.

Mar 31 2009, 5:06 pm Elvang Post #6



Try using Unlocker on the file, even if it finds no handles tell it you want to delete the file. It'll try several different methods to delete it. Googling[1][2] shows several other people have had success with Unlocker and with another method where you rename the problematic file from commandline to match DOS 8.3 naming conventions and then deleting.



None.

Mar 31 2009, 7:28 pm rockz Post #7

ᴄʜᴇᴇsᴇ ɪᴛ!

I prefer booting into safe mode, or booting into something like linux, then deleting those files there. My old computer had a pure command prompt version of windows, which made it ridiculously easy to delete any file I wanted.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Mar 31 2009, 7:58 pm Heinermann Post #8

SDE, BWAPI owner, hacker.

Rebooting the computer would solve this, unless

1) Your filesystem is corrupt.
2) A program or virus is accessing the file on startup.




Mar 31 2009, 8:10 pm bajadulce Post #9



Quote from Souma
The file has been sitting there for days, hoping it would just disappear after some restarts.
hmmm.. then as Heinermann points out, it's using something on startup. You might try safemode reboot as above user suggested.



None.

Mar 31 2009, 8:29 pm Elvang Post #10



Most of the Google results for that exact error message had people saying they had trouble deleting it even after restarts and boots into safe mode. Skimmed over the answers, but it seems that NTFS allows file names/paths that the standard Win32 API doesn't play nice with.

For example, you can have files ending with a '.' on a NTFS partition and windows will show the file in a directory listing, you just can't do much to it. This page details a method of getting around some of the limits the Win32 API places on file names, specifically: prepending \\?\ to the path when performing operations (such as from command line and batch files).



None.

Mar 31 2009, 10:25 pm Souma Post #11



Elvang's method worked. I used Unlocker and deleted it. It found no handles as well.

Thanks for the replies! ^^



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[05:41 am]
Ultraviolet -- 🤔 so inf is in you?
[04:57 am]
O)FaRTy1billion[MM] -- my name is mud
[04:35 am]
Ultraviolet -- mud, meet my friend, the stick
[10:07 pm]
lil-Inferno -- nah
[08:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[05:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[05:24 pm]
lil-Inferno -- poopoo
[05:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
[2024-5-16. : 3:36 pm]
NudeRaider -- :lol:
Please log in to shout.


Members Online: 6madisone1185rb4, 9madisonc6491wh7, 4harpere47100er4, RIVE