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

memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes memes

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.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: lil-Inferno