+ Post New Thread
Results 1 to 12 of 12
Windows 8 Thread, Unable to delete a file (file name too long) in Technical; Hi I am trying to delete this PC of anything that has me on it (local chached things etc) Theres ...
  1. #1
    Tesla's Avatar
    Join Date
    Nov 2013
    Location
    Milk 'n' Beans
    Posts
    1,230
    Thank Post
    154
    Thanked 237 Times in 179 Posts
    Blog Entries
    1
    Rep Power
    78

    Unable to delete a file (file name too long)

    Hi

    I am trying to delete this PC of anything that has me on it (local chached things etc)

    Theres one folder (shown below) where they are 3 files that it wont let me delete, and there is no option when i right click them, to enable me to rename them.

    Any one have any ideas?

    b8e1c3d08e40545e22e159afaf7a62c1.png
    Here's the path of the files

    64ebc967c3d879dc849f902ab9de72d9.png

  2. #2

    Garacesh's Avatar
    Join Date
    Jan 2012
    Posts
    3,242
    Thank Post
    1,208
    Thanked 478 Times in 349 Posts
    Rep Power
    236
    I'm only guessing, but "Filename is too long for destination folder", destination folder presumably being the Recycle Bin.
    Shift-Delete (or equivalent on Win8) or using the command line might work as that outright deletes it.

  3. Thanks to Garacesh from:

    Tesla (5th February 2014)

  4. #3
    Tesla's Avatar
    Join Date
    Nov 2013
    Location
    Milk 'n' Beans
    Posts
    1,230
    Thank Post
    154
    Thanked 237 Times in 179 Posts
    Blog Entries
    1
    Rep Power
    78
    i went into recycle bin properties and set it to automatically delete the file permanently, and still got that error.

    shift-delete did not work, will try cmd line after my lunch

  5. #4

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,983
    Thank Post
    3,531
    Thanked 1,107 Times in 1,014 Posts
    Rep Power
    374

  6. #5

    Join Date
    Jan 2008
    Posts
    162
    Thank Post
    12
    Thanked 30 Times in 28 Posts
    Rep Power
    26
    Download a copy of RoboCopy, create a folder called "Empty" Now run the command,
    Code:
    robocopy c:\empty diryouwanttoremove /mir
    RoboCopy Mirrors the contents of the empty folder to the other directory deleting all of the contents. It will also remove deep folders without bothering you. Please remember that this will delete everything if you select the wrong destination folder.

  7. #6

    Garacesh's Avatar
    Join Date
    Jan 2012
    Posts
    3,242
    Thank Post
    1,208
    Thanked 478 Times in 349 Posts
    Rep Power
    236
    Quote Originally Posted by Tesla View Post
    i went into recycle bin properties and set it to automatically delete the file permanently, and still got that error.
    To my knowledge, auto-empty-at-0% still has to move the file first, which it can't do if the name is stupidly long.
    Like I say, I may be entirely wrong, but that's the only 'destination folder' I can think would apply here.

  8. #7

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,665
    Thank Post
    1,484
    Thanked 1,263 Times in 857 Posts
    Rep Power
    803
    You can delete files like this via command line, just navigate to the directory and run "dir /x" to see the shortened version of the file name then delete it using that

    EDIT: just to clarify, delete it at the command line i.e. "del shortened~1.doc"
    Last edited by LosOjos; 5th February 2014 at 01:07 PM.

  9. #8

    Garacesh's Avatar
    Join Date
    Jan 2012
    Posts
    3,242
    Thank Post
    1,208
    Thanked 478 Times in 349 Posts
    Rep Power
    236
    Quote Originally Posted by LosOjos View Post
    You can delete files like this via command line, just navigate to the directory and run "dir /x" to see the shortened version of the file name then delete it using that

    EDIT: just to clarify, delete it at the command line i.e. "del shortened~1.doc"
    DEL SHORTE~1.DOC
    8.3

  10. Thanks to Garacesh from:

    LosOjos (5th February 2014)

  11. #9

    LosOjos's Avatar
    Join Date
    Dec 2009
    Location
    West Midlands
    Posts
    5,665
    Thank Post
    1,484
    Thanked 1,263 Times in 857 Posts
    Rep Power
    803
    Quote Originally Posted by Garacesh View Post
    DEL SHORTE~1.DOC
    8.3
    haha ok you win points for the technically correct example!

  12. Thanks to LosOjos from:

    Garacesh (5th February 2014)

  13. #10

    Garacesh's Avatar
    Join Date
    Jan 2012
    Posts
    3,242
    Thank Post
    1,208
    Thanked 478 Times in 349 Posts
    Rep Power
    236
    The best kind of correct.

  14. #11

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,983
    Thank Post
    3,531
    Thanked 1,107 Times in 1,014 Posts
    Rep Power
    374
    If you all go to this group question, lots of things you can do :

    https://groups.google.com/forum/#!to...al/c8xqjKOTuR8

    I do believe there was a comment somewhere that mentioned about renaming the folders / directories ( making them shorter ) thus bringing the character count down to hopefully below 255 which will then help with deleting files, failing that you should be able to cut and paste or move the directories into a folder on the root of the C Drive to try and make the path shorter as not so many directories / sub directories etc

  15. #12
    Tesla's Avatar
    Join Date
    Nov 2013
    Location
    Milk 'n' Beans
    Posts
    1,230
    Thank Post
    154
    Thanked 237 Times in 179 Posts
    Blog Entries
    1
    Rep Power
    78
    Managed to delete via CMD, eventually.. Thanks for the help guys



SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 19
    Last Post: 3rd September 2014, 04:51 PM
  2. Script to delete NTUSER.DAT file from server
    By cneilson6 in forum Windows Server 2008 R2
    Replies: 3
    Last Post: 27th November 2012, 03:40 PM
  3. Unable to delete folder and files
    By jgcracknell in forum Windows Server 2008 R2
    Replies: 15
    Last Post: 4th January 2012, 12:30 PM
  4. unable to copy the driver file macromix.dll
    By goodhead in forum Windows
    Replies: 1
    Last Post: 19th January 2009, 12:46 PM
  5. Replies: 10
    Last Post: 4th June 2007, 01:56 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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