Deleting files with VERY long file names

Discussion in 'alt.windows7.general' started by Alf, Feb 13, 2011.

  1. Variations in that appear when you get past the counting number of 9, or
    the first few characters include some not allowed in an 8.3 name (fewer
    characters are allowed than in long names - spaces for example), or if
    the extension has more than three characters, or ...
    Agreed.
     
    J. P. Gilliver (John), Mar 9, 2012
    #21
    1. Advertisements

  2. On this Windows 7 computer, subst /? in a command window gives a brief
    help message. I would guess that means it works in Win 7.

    Subst /help gives an error message :)
     
    Gene E. Bloch, Mar 9, 2012
    #22
    1. Advertisements

  3. (-;

    --
    Zaphod

    Adventurer, ex-hippie, good-timer (crook? quite possibly),
    manic self-publicist, terrible bad at personal relationships,
    often thought to be completely out to lunch.
     
    Zaphod Beeblebrox, Mar 9, 2012
    #23
  4. Alf

    Zaidy036 Guest

    subst /? works but /help gives an error on my Win7 64bit
     
    Zaidy036, Mar 9, 2012
    #24
  5. That's no surprise to me, since that's what I just reported two posts
    up...

    In this post, that's 4 and 6 lines above your comment.
     
    Gene E. Bloch, Mar 10, 2012
    #25
  6. Before we get too far down this road: I mentioned subst because I find
    it a lot easier to use, when just working within existing drives, than
    using the mapping network drive method.
     
    J. P. Gilliver (John), Mar 10, 2012
    #26
  7. Alf

    atillarist Guest

    Alf wrote on 02/13/2011 05:20 ET
    After days of searching I finally found solution for unlocking, managing an
    renaming long named files. Get your problem solved fro
    http://longpathtool.com/
     
    atillarist, Mar 29, 2012
    #27
  8. It looks to me like an old spammer is back with a new nym.

    Any other opinions?
     
    Gene E. Bloch, Mar 30, 2012
    #28
  9. Alf

    Char Jackson Guest

    I randomly see 'helpful' posts like the one above, all pointing to the
    same utility, in most of my subscribed text groups. Like the one
    above, they are usually replies to posts that are 1-4 years old.
     
    Char Jackson, Mar 30, 2012
    #29
  10. Alf

    Tony Luxton Guest

    So what? People might still want the information, even if it's been
    answered before in a post that's long been deleted from the server.
     
    Tony Luxton, Apr 7, 2012
    #30
  11. Alf

    Char Jackson Guest

    Replying to 4 year old posts, and basically spamming at the same time,
    isn't really helpful.
     
    Char Jackson, Apr 7, 2012
    #31
  12. Alf

    Bravesoul

    Joined:
    May 16, 2012
    Messages:
    1
    Likes Received:
    0
    Solution For Excessively Long File Names in Windows 7

    Ok after I had a problem deleting several files that have excessively long file names, I came to this forum and searched for a solution.
    Some sounded a little to complicated to attempt.
    Then it dawned on me like a light switch went off in my head.
    I have wifi setup on my laptop, and from time to time send files and receive files from my phone.
    I use an application called ES File Explorer which is a free application on the Android Market.
    So I decided to delete the files using ES File Explorer.
    Steps I took to delete file.
    1. Shared out the drive with the problem in my case it was drive: K
    ---> note: I don't suggest you share your computer on a public network that would open your computer to risks. <----
    2. Using ES File Explorer select Lan (search for computers on private wifi)
    3. Logged into my computer through ES File Explorer (on my private wifi network)
    3. Navigated to the file with the problem and told ES File Explorer to delete it.

    Since my phone's operating system is based on linux I was able to delete it with no problem.
    This solution should also work for extremely long directory names.

    Hope this helps :)
     
    Last edited: May 16, 2012
    Bravesoul, May 16, 2012
    #32
  13. Alf

    Retseem

    Joined:
    May 16, 2012
    Messages:
    1
    Likes Received:
    0
    I just used the file explorer from 7-zip.
    This explorer doesn't seem to care about file name lenght, path lenght\depth or whatsoever.
     
    Retseem, May 16, 2012
    #33
  14. Alf

    lyf4ce

    Joined:
    Jun 13, 2012
    Messages:
    1
    Likes Received:
    0
    CMD Prompt Solution

    I just had this problem and used this in order to delete the files:

    for /f "tokens=5* delims= " %g IN ('dir /x') DO (del "%g% /f /q /s)

    Didn't delete directories, but deleted all files in them and then the directories could be deleted.
     
    lyf4ce, Jun 13, 2012
    #34
  15. Alf

    wagu

    Joined:
    Jul 3, 2012
    Messages:
    1
    Likes Received:
    0
    this worked for me, without a 3rd party tool

    When I tried to delete it directly using the shortname, I still got the name is too long error. But when I renamed it first using the shortname, I was able to delete it using the new name.

    STEPS:
    1. dir E* /x (to find the short name of my long file name that started with letter "E")
    2. ren EVIL001~1 deleteMe (renamed it to "deleteMe" using the short name)
    3. del deleteMe (bye-bye evil long name file!!)
     
    wagu, Jul 3, 2012
    #35
  16. Alf

    Kellynim

    Joined:
    Oct 8, 2012
    Messages:
    2
    Likes Received:
    0
    how to delete long path file

    There are several reasons why Windows might not allow you to delete a file:

    • The file might be in use in which case you can't delete the file until the program using it gives it up.
    • The file might be marked read-only.
    • The file name might be so long that Windows can't handle it. File names with more than 260 characters in them are often difficult to delete.
    There are also several reasons why Windows might not allow you to change the name of a file; particularly its extension. All above apply here; as well as...

    • Your system may not be showing file extensions by default.
    We'll cover that one first and the others in turn.
     
    Kellynim, Oct 8, 2012
    #36
  17. Alf

    mramsden

    Joined:
    Oct 27, 2012
    Messages:
    1
    Likes Received:
    0
    Simple solution .... works for same prob in Windows 8

    It's not just the filename length .. it's also the path length.

    I just created a folder in the root directory, moved the folder containing the offending files with the very long names into that single level deep folder, and deleted it there.

    The shorter path length did the trick.
     
    mramsden, Oct 27, 2012
    #37
  18. Alf

    daveq

    Joined:
    Nov 23, 2012
    Messages:
    1
    Likes Received:
    0
    Thanks for the help. Been years I've had such files!

    Thanks for the help. Been years I've had such files!
     
    daveq, Nov 23, 2012
    #38
  19. Alf

    alexiusnor

    Joined:
    Jun 6, 2013
    Messages:
    1
    Likes Received:
    0
    Alf bro have you ever used Long Path Tool, if not then i will suggest you to download this and use it..You will get solution of your problem shared here.
     
    alexiusnor, Jun 6, 2013
    #39
  20. Alf

    bmiranda

    Joined:
    Oct 26, 2013
    Messages:
    1
    Likes Received:
    0
    Had a similar problem before. I just used the Long Path Tool and it worked. The software can be downloaded for free. Very helpful!
     
    bmiranda, Oct 26, 2013
    #40
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.