Results 1 to 10 of 10

Thread: stubborn file

  1. #1
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Belle Harbor, New York, USA
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    stubborn file

    How do I delete a file that does not wish to be deleted? I get an error messge that says, "Cannot delete file: The file name you specified is either invalid or too long. Specify a different file name."
    I have tried restarting the computer. No luck. This is a file I downloaded. Can I delete it through the registry? Thank you very much.
    Alan Silberlight

  2. #2
    Uranium Lounger viking33's Avatar
    Join Date
    Jun 2002
    Location
    Cape Cod, Massachusetts, USA
    Posts
    6,308
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: stubborn file

    What is the name of the file you can't delete and where is it located?
    BOB
    http://lounge.windowssecrets.com/S/flags/USA.gif http://lounge.windowssecrets.com/S/f...sachusetts.gif


    Long ago, there was a time when men cursed and beat on the ground with sticks. It was called witchcraft.
    Today it is called golf!

  3. #3
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Belle Harbor, New York, USA
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: stubborn file

    It is located in a folder in a folder in the C drive. It is tremendously long. It begins with con. QWERTY...

  4. #4
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: stubborn file

    Give us the FULL folder names

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  5. #5
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: stubborn file

    Can you rename the folder?
    If so, rename it to something else, create a new folder with the original name, copy all but the rogue file and see if you can delete the folder (including contents).

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: stubborn file

    I suspect that your problem is the CON at the start of the filename. This is an ancient problem going all the way back to DOS, since CON, LPT1, AUX and the like were reserved "devices", which could not be "deleted" if they referred to file names!

    Read through <!mskb=315226>Microsoft Knowledge Base Article 315226<!/mskb> and see if you follow it. It carefully fails to say that it would be easiest to do this in a Command Prompt window.

    Please note that if you have blanks in the filename or anywhere in the path the command
    DEL .c:some dircon QWERTYetc
    must have everything after the DEL<blank> in double quotes, as in
    DEL ".c:some dircon QWERTYetc"

    You must specify the full file name, so that will be a frustrating typing exercise for you...

    Hope this is the correct solution, but it would have been useful to have given the entire file path!

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  7. #7
    Uranium Lounger
    Join Date
    Mar 2001
    Location
    New Jersey
    Posts
    6,684
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Re: stubborn file

    As John said, it would be more helpful of you to give us more complete information than "I have some file, named 'something' in some folder that I want to delete. Can you tell me how ??" The more complete your question the better able we will be to help you.

    That said, if you're not comfortable at a Command Prompt then you might try Dr. Delete. I've never run into a file type quite like the one you're dealing with, but this little utility runs before anything gets loaded, so it should get the job done. Post back with what method you try and how you make out. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    <IMG SRC=http://www.wopr.com/w3tuserpics/DocWatson_sig.gif>

  8. #8
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: stubborn file

    This brings back some nightmares of yesteryear - "I've got a virus that keeps putting files called CON in every directory. I delete them all and it recreates them!"

    Alan

  9. #9
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Belle Harbor, New York, USA
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: stubborn file

    Thank you, everybody!! The file is gone! I moved the other files from that folder into another one. I was then able to delete the folder that contained the rogue file.

    Thank you again.

    Alan Silberlight

  10. #10
    Uranium Lounger
    Join Date
    Mar 2001
    Location
    New Jersey
    Posts
    6,684
    Thanks
    1
    Thanked 11 Times in 11 Posts

    Re: stubborn file

    Alan,

    Glad you were able to work it out. Thanks for posting back. It will help us to help others. <img src=/S/yep.gif border=0 alt=yep width=15 height=15>
    <IMG SRC=http://www.wopr.com/w3tuserpics/DocWatson_sig.gif>

Posting Permissions

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