Results 1 to 8 of 8
  1. #1
    New Lounger
    Join Date
    Jun 2002
    Location
    Bradford, W. Yorks., England
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unable to delete file

    Somehow I've got a file with a corrupt file-name (made up of a variety of random characters from seemingly different fonts.)

    I can't right-click the file in PowerDesk, Control3 or explorer. When I try to delete the parent folder it fails saying the file name is incorrect. I've even tried to delete it using Eraser - same message.

    Any ideas how I can get rid of it?

    TIA

    William <img src=/S/brickwall.gif border=0 alt=brickwall width=25 height=15>

  2. #2
    Bronze Lounger
    Join Date
    Feb 2001
    Location
    England
    Posts
    1,306
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Unable to delete file

    Sounds to me as though its not a file at all in the normal sense, but some left-over fragment.

    1. Try deleting it from a DOS prompt

    2. Try renaming it from a DOS prompt, then 1 or normal delete.

    3. Run scandisk

    4. Try 1 and 2 in Safe Mode

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Unable to delete file

    I once was able to rename a problematic file using VBScript and the FileSystemObject. The problem was that my script had a bug and tacked on extra characters to resolve naming conflicts. The name got so long it could not be deleted through Windows Explorer. However, in code, I was able to rename the file. Unfortunately, I don't know what I did with that script, but maybe the attached sample will get you started with the FileSystemObject. It asks you for a path to a folder, and then a string to add at the beginning of the file names in that folder, and then updates all the names, stopping for guidance if the prefix causes the name to exceed 64 characters. (This was used as part of our transition to a document management system where the folder name provided critical information that otherwise could not be imported.)
    Attached Files Attached Files

  4. #4
    New Lounger
    Join Date
    Jun 2002
    Location
    Bradford, W. Yorks., England
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Unable to delete file

    Many thanks MerC - didn't need to go beyond (1)

    William <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23>

  5. #5
    3 Star Lounger
    Join Date
    Feb 2001
    Posts
    369
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Unable to delete file

    Just back up more frequently from now on - the time this happened to me it was the prelude of major hard disc disasters.

  6. #6
    New Lounger
    Join Date
    Jun 2002
    Location
    Bradford, W. Yorks., England
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Unable to delete file

    It's just happened the once. Were your subsequent problems physical or logical?

  7. #7
    3 Star Lounger
    Join Date
    Feb 2001
    Posts
    369
    Thanks
    2
    Thanked 1 Time in 1 Post

    Re: Unable to delete file

    Physical. But disaster didn't strike until I'd accumulated a few of these episodes - usually increasing in frequency and/or number.

    It was quite a long time ago (a 520MB hard drive I seem to recall), so maybe I'm worrying you over nothing.

  8. #8
    New Lounger
    Join Date
    Jun 2002
    Location
    Bradford, W. Yorks., England
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Unable to delete file

    Let's hope so. Thanks for your concern - hope you don't hear from me again!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •