Tesla Posted February 5, 2014 Posted February 5, 2014 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? Here's the path of the files
Garacesh Posted February 5, 2014 Posted February 5, 2014 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. 1
Tesla Posted February 5, 2014 Author Posted February 5, 2014 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
mac_shinobi Posted February 5, 2014 Posted February 5, 2014 As per this previous question on edugeek : http://www.edugeek.net/forums/windows/87563-long-file-paths-solutions.html Long Path Tool: Path Too Long | Filename too long | Filename is too long | Path too long utility
chris_uk Posted February 5, 2014 Posted February 5, 2014 Download a copy of RoboCopy, create a folder called "Empty" Now run the command, 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.
Garacesh Posted February 5, 2014 Posted February 5, 2014 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.
LosOjos Posted February 5, 2014 Posted February 5, 2014 (edited) 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" Edited February 5, 2014 by LosOjos
Garacesh Posted February 5, 2014 Posted February 5, 2014 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 1
LosOjos Posted February 5, 2014 Posted February 5, 2014 DEL SHORTE~1.DOC 8.3 haha ok you win points for the technically correct example! 1
mac_shinobi Posted February 5, 2014 Posted February 5, 2014 If you all go to this group question, lots of things you can do : https://groups.google.com/forum/#!topic/microsoft.public.windowsxp.general/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
Tesla Posted February 5, 2014 Author Posted February 5, 2014 Managed to delete via CMD, eventually.. Thanks for the help guys
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now