I had a nasty little file download itself onto my desktop but not properly. As a result, it didn't work. Yet every time I hit delete an error message said, "Cannot delete file: Cannot read from the source file or disk". The file had 0kb of memory, the file name was incomplete, and there was no file extension. It wasn't a virus or malware - I scanned to be sure. I was using Windows XP. Here's a quickie on how I fixed it by deleting the folder that contained the file. (Legal blah: back up your data, read the instructions, read other people's instructions, I take no responsibility for any data, monetary or other loss, this is just a story of my personal success...)

1. First I found the correct folder address by using Start>Search. I needed the correct address in order to locate it during the next step. In my case, the file was located at C:\Documents and Settings\MY NAME\Desktop\divx-501.vo.llnwd.net

2. I opened the command prompt by clicking Start>All Programs>Accessories>Command Prompt

3. I changed the directory from "C:\" to "C:\Documents and Settings\MY NAME\Desktop" by typing the following and hitting Return (note that "cd" means "change directory"):

cd C:\Documents and Settings\MY NAME\Desktop



4. I deleted the folder the file was contained in by typing DEL followed by the stupidly long name of the folder:

DEL divx-501.vo.llnwd.net



5. The Command Prompt asked whether I was sure? I typed Y, and hit Return. This is what it all looked like (click to zoom):



Returning to the desktop, I then tried to delete the folder containing the evil file, and this time, it deleted! Hooray. (If the file had been locked by explorer, which it wasn't because I checked, you also need to switch off explorer.exe while you use the Command Prompt. Look that up if you have no idea what I'm talking about.)


5 Comments:

  1. jonathan riley on August 19, 2007 11:00 AM

    I use the command line wherever i can now. You should see this guy use it. It is a sight to behold.

     
  2. CJ on August 19, 2007 1:27 PM

    I know. He is a bit of a don.
    Ba-doom-ching... :-)

    Command prompt is so useful but it still scares the wibblies out of me - I'm always convinced I'm going to give my CPU a haemorrhage.

    CJ x

     
  3. jonathan riley on August 19, 2007 2:57 PM

    GUI programs I use cause CPU problems from time to time, but I've never had a computer hardware/software problem of any kind running operations from the command line. The only processing hardware that gets too hot is my poor brain trying to work out the right commands to put in! It's all great fun though. Keep up the good work!

     
  4. Almut on August 19, 2007 4:04 PM

    I recently solved a problem similar to yours by using command lines. It is so much fun but I too am in awe of the power of a single command (have to say I love KILL when dealing with stubborn applications :)). Ubuntu has some cool help files when using a terminal window and (given that you have a backup of your files you can always reinstall.

     
  5. CJ on August 19, 2007 8:08 PM

    "Given that you have a backup of your files you can always reinstall..."

    Ah-ha-ha...who ever said I was that responsible? :-)

    I agree the command line is pretty damn cool, but there's a worrying seriousness to the monochrome DOSesqueness. Oh, and it beeps at me menacingly too. The same beep that accompanies blue screen of death. Not good.