Deleting corrupt file

Discussion in 'Windows Desktop Systems' started by Rolyk, Aug 21, 2002.

  1. Rolyk

    Rolyk Guest

    How can I delete a file with a corrupted filename? Everytime I try I just get a mesage telling me it can't delete the file.
  2. beatlesdb

    beatlesdb Guest

    I may be that the file is locked by the system -
    resart XP in safe mode and try deleting it from there.
  3. or u could try going to run on the start menu type"cmd" go the the command console and manually naviagate to the rouge file and them type" delete filename.???" this should remove it.
  4. Hipster Doofus

    Hipster Doofus Good grief Charlie Brown

    Melbourne Australia
    Deleting files - Access Denied Error

    Explorer.exe in XP has a bad habit of wanting to hang on to files, even when you have finished using them - therefore when you try to delete the file, XP will say "Access Denied".
    This error occurs more often when working with media files - mp3, avi, mpeg etc.
    Close all open applications.
    Open a command prompt and navigate to the directory with the offending files.
    Then open the Task Manager and click on the Processes tab. select "explorer.exe" under Image Name. Click "End Process".
    That will leave you with only the command prompt and the task manager running.
    Now at the Command Prompt, its time to delete the file(s). Using the DEL command. Example c:>\movies\DEL movie.avi
    Now the files are deleted, go to the task manager and click on the Applications tab. Click the "New Task" button. in the dialog, type explorer.exe and click OK.

    For folders the command is 'rd'.
  5. Rolyk

    Rolyk Guest

    Thanks for the suggestions but had already tried deleting it from the command prompt. Somehow the filename has become corrupted and uses a character not in the normal set. If I try to delete it I get a message saying file not found.

    The file is not being used, in fact its an old gif file that now has the extension .gia but the letter a has a wavy line over it.

    Its not a problem, just an irritation it being there! I suppose I could temporarily copy all the folders, except the one with the damaged file, to another partition, reformat the drive and restore. But a sledgehammer to crack a nut I suspect and I don't intend to do it!
  6. why not go back to the command prompt and type"del *.gia"