Welcome Guest.   Make a donation to an author on the site October 01, 2014, 03:27:50 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2013! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: File too long for Recycle Bin  (Read 1071 times)
Cuffy
Participant
*
Posts: 374

View Profile Give some DonationCredits to this forum member
« on: September 27, 2014, 01:23:34 PM »

Has anyone run across the problem in Win8.1 that a file won't delete because "file too long for Recycle Bin"
 tellme
Logged
Shades
Member
**
Posts: 1,657


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #1 on: September 27, 2014, 02:36:49 PM »

No, can't say I haven't (in any version of Windows).

Solutions could be:
- Shorten the name of the file.
- Move the file to different location much closer to the drive letter and then delete it.
- Adjust the setting of the Recycle bin to throw away files directly (without these being stored in the recycle bin first), delete the file and adjust the setting again (although I think this is a setting for p.ssies to begin with)
- If all that fails you can try to boot from a Linux or Windows boot cd and delete the file that way.

Alternative nerd solution would be:
- If you run a 32-bit version of Windows, you still have something like 'PortableLinux', which is a 1.4GByte download. After unpacking the archive you can run this and you will have both Windows and Linux (ubuntu based) running next to each other at the same time. If Windows won't allow you to delete the file, use the Linux navigator to go that file and delete it. Windows won't/can't intervene that action and your problem is solved. With the Linux navigator you can also take a peek in folders Windows blocks for all users (but not viruses and malware apparently) and get rid of crap there too. Be careful though, remove too much and you are in trouble.
Logged
mwb1100
Supporting Member
**
Posts: 1,315


View Profile Give some DonationCredits to this forum member
« Reply #2 on: September 27, 2014, 03:20:07 PM »

If I recall right, Shift-Delete in explorer will delete a file without putting it in the recycle bin which might workaround the problem.

Or you can delete the file from a command line window which doesn't know anything about the recycle bin.
Logged
Cuffy
Participant
*
Posts: 374

View Profile Give some DonationCredits to this forum member
« Reply #3 on: September 27, 2014, 03:44:01 PM »

Solutions could be:
- Shorten the name of the file.
- Move the file to different location much closer to the drive letter and then delete it.
- Adjust the setting of the Recycle bin to throw away files directly (without these being stored in the recycle bin first), delete the file and adjust the setting again (although I think this is a setting for p.ssies to begin with)
- If all that fails you can try to boot from a Linux or Windows boot cd and delete the file that way.
All good logic, But............. Windows won't let you move the file, shorten it or rename it.
Can't bypass the Recycle Bin either  thumb down
Files long enough to cause this problem are rare and I have a little utility from last century, Move on Boot, that deletes them  nicely but I think I've found a faster solution.
A little background on the source of the files..........
I'm diabetic and occasionally run across a recipe in a newsletter that may add something to my diet so I save it. When time permits I gather all those recipes and move them to a folder on Drive D:. I save the recipe in htm format so it comes down with an "includes folder" which "includes" some files, usually graphic files, that are three screens long  huh
Several hundred characters long and I have no idea why.
The ladies that collect recipes on a regular basis are more apt to run into this than others  Thmbsup
To shorten the story........ if you get an error message "file too long......." and you want rid of it, highlite the file,
right click on the Menu Bar in the ribbon and you'll get a dropdown with an option to "Delete the History". Delete the history and chances are that you can now delete to file without further ado.
Evidently the file history is included in the file length somehow but that's above my paygrade. I discovered the fix by chance  cheesy
A Windows programmer might be able to enlighten us  huh

I suggest you round up a copy of Move on Boot to keep in your toolbox. It's a freebie and has been updated over the years.
 tongue
Logged
MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: September 27, 2014, 04:09:53 PM »

It sounds like it can't be done through the shell because Explorer still has a 260 character path length limit.  The best solution may be a file manager without this limitation.

If you haven't run into this Explorer "feature" due to some old embedded code nobody wants to mess with hidden in there somewhere, you can do an experiment.  Make some nested folders until you create a folder with a path exactly 260 characters long.  Now try to make a new folder inside it.  It won't let you.  I forget exactly what happens, if there's an error msg or if it just does nothing as if it is ignoring you.

Command line delete should work with wildcards.  Just wtch out for any spaces in the file path.  A newer file manager is likely the no headache solution.
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
Stephen66515
Animated Giffer in Chief
Honorary Member
**
Posts: 2,577



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #5 on: September 27, 2014, 04:25:22 PM »

Has anyone run across the problem in Win8.1 that a file won't delete because "file too long for Recycle Bin"
 tellme

Strangely...I have deleted NOTHING since buying the laptop like 6 weeks ago so...I don't know...but I'm on Windows 8.1...

This post provided to you by "Unhelpful Replies Ltd.com"
Logged

No trees were harmed during the creation of this message.  Millions of electrons, however, were terribly inconvenienced

"Think left and think right and think low and think high. Oh, the things you can think up if only you try!" - Dr. Seuss


Cuffy
Participant
*
Posts: 374

View Profile Give some DonationCredits to this forum member
« Reply #6 on: September 27, 2014, 04:36:14 PM »

Been doing some checking.......
Those long files aren't in the original "includes" folder. They show up when the htm file and includes folder is moved to a different partition  huh

They may be part of the header from the newsletter email msg  huh
I tried to copy and paste one of the long file names to give you an idea of what I'm talking about but it won't let me do that either.... they have no file extension either????

687474703a2f2f63646e2e6d796461696c796d6f6d656e742e636f6d2f636f6d706f6e656e74732f636f6d5f7261706964726

 ohmy that's part of one. tongue

 Grin

Logged
Cuffy
Participant
*
Posts: 374

View Profile Give some DonationCredits to this forum member
« Reply #7 on: September 27, 2014, 04:42:07 PM »

This post provided to you by "Unhelpful Replies Ltd.com"

I knew I could count on you Stephen  cheesy
You had better start deleting or you'll wind up with "The double-ended fire breathing dragon syndrome". The meanest animal in the universe  embarassed

Logged
MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: September 27, 2014, 04:51:12 PM »

The move on boot likely works because it uses the Registry RunOnce or Run key to delete the file before login.  It uses the del command which is command line.

You can create very long file names programmatically.  It's just Explorer that can't handle it.  A console based file manager anyone?  smiley
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
Cuffy
Participant
*
Posts: 374

View Profile Give some DonationCredits to this forum member
« Reply #9 on: September 27, 2014, 04:53:19 PM »

 huh
It sounds like it can't be done through the shell because Explorer still has a 260 character path length limit.  The best solution may be a file manager without this limitation.

If you haven't run into this Explorer "feature" due to some old embedded code nobody wants to mess with hidden in there somewhere, you can do an experiment.  Make some nested folders until you create a folder with a path exactly 260 characters long.  Now try to make a new folder inside it.  It won't let you.  I forget exactly what happens, if there's an error msg or if it just does nothing as if it is ignoring you.

Command line delete should work with wildcards.  Just wtch out for any spaces in the file path.  A newer file manager is likely the no headache solution.

Is this type of information published somewhere  huh
I remember Win95 or Win98 had a limit of 292 folders on the Root directory and it took me years to find that  Angry

« Last Edit: September 27, 2014, 05:19:38 PM by Cuffy; Reason: Typo.. that should be 192 folders if I have any memory left at all » Logged
MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #10 on: September 27, 2014, 05:02:58 PM »

This utility was talked about before on DC:
http://sourceforge.net/projects/tlpd/

I posted a small modification that allowed larger numbers to be specified and if I remember right, it supported UNC paths:
http://sourceforge.net/p/...d/fdd3028c/?limit=50#55ca

Explorer Documented?  Next you'll be asking for Registry Documentation.

I think I asked about it on MSDN years ago.  Bill Gates replied:
"Documentation?  We don't need no stinkin' documentation."  But then again
my memory isn't as reliable as I remember it being in the past.  smiley
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
Renegade
Charter Member
***
Posts: 11,445



Tell me something you don't know...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #11 on: September 27, 2014, 09:38:43 PM »

IIRC - It can be solved from the command line. My memory is fuzzy though. I had this issue a while back.
Logged

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker
Cuffy
Participant
*
Posts: 374

View Profile Give some DonationCredits to this forum member
« Reply #12 on: September 27, 2014, 11:18:24 PM »

IIRC - It can be solved from the command line. My memory is fuzzy though. I had this issue a while back.
Folks, I already had several solutions when I posted the question  huh
I had put some time into finding the answer to a very rare problem. All the answers posted work quite well but I don't want to make a project of deleting a file  ohmy
I want to hit delete and press on with the business at hand............. and, on several occasions lately that didn't work.
No big deal smiley I've had a copy of "Move on Boot" on every machine for many years so I fire up the utility, designate the bastard file, reboot the machine, and the file has disappeared as was advertised. Problem solved  Thmbsup.............. except I just wasted 20 mins deleting a file  Sad
The second time I got that error msg I decided it was time to find out why I was getting it  huh
I checked the includes folder and discovered a half dozen files stretching to the edge of the screen and a scroll bar at the bottom of the screen. Files are 350/450 characters long, just characters, no complete words, and no file extension...  weird  tellme
They wouldn't delete, rename, shorten, or copy to the clipboard. I couldn't move them to the root folder to get a shorter path. They just set there pissing me off  embarassed
Then, I started clicking "about", hoping for an epiphany  cheesy
I right clicked on the Menu Bar in the ribbon, the file was already highlighted, and I get a dropdown. Click the option "Delete File History", try to delete the file again, and Voila', it goes  Thmbsup
I tried a couple more of the long files with the same result. What has File History got to do with the problem  huh huh
I don't know but maybe someone at DC does  smiley
I post the question..... get lots of ideas and methods to remove the naughty files, but I still don't know why deleting file history worked unless the file history is tacked onto the file somehow  tellme
Since then I've been checking more of the "includes folders" for more over-long files and trying to figure what to do with them.
The files are easy to find once you start paying attention  cheesy
Open a folder and if it contains extra long files a scroll bar appears at the bottom of the page  Wink
Found some more files and started playing. Deleting the history worked! Then I found one with .eml in the file.......... an email header? Locked solid... so I checked the Properties and discovered that everyone could see it but nobody had full powers to do anything with it. I edited the Permissions giving everyone "full powers" and Bingo......... that one deleted with the mouse  Thmbsup
Found more files running off the edge of the screen and one of these had the word adlink in the file name. JUNK files  Grin
Removed them all using one of the procedures outlined above..... in 10 seconds, and never leaving the page  tongue
Long story shorter............ try the above procedures if the problem arises. It really isn't necessary to run off into Geekdom to rid yourself of those damned too-long files  cheesy
 Thmbsup
Logged
MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #13 on: September 28, 2014, 08:08:20 AM »

If you hit Delete History and the files were deleetd it's likely because, as I already noted, the OS has no problem creating and deleting very long filenames.  Only the shell.  The browser can delete long filenames programmatically.  It's only Explorer that pukes out.

If there's a free or other file manager you can bear to use all the time that does not use Explorer under the covers, then it should be no thought required.  Select files and hit delete.

I haven't run into this often enough to search out such file managers.  But they must be out there.

Edit: In fact if anyone wants to experiment to see if Recycle Bin itself can handle paths >260 you could create such a file by some means then use my command line program sike to attempt to send it to the bin.

Download is from this page:
http://milesaheadsoftware.tk

« Last Edit: September 28, 2014, 08:13:27 AM by MilesAhead » Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
Cuffy
Participant
*
Posts: 374

View Profile Give some DonationCredits to this forum member
« Reply #14 on: September 28, 2014, 10:17:30 AM »

I right clicked on the Menu Bar in the ribbon, the file was already highlighted, and I get a dropdown. Click the option "Delete File History", try to delete the file again, and Voila', it goes  Thmbsup
I tried a couple more of the long files with the same result. What has File History got to do with the problem
Since deleting the file history allows me to delete the long file why do you feel it's necessary to search out and install a different file manager  huh
Using the simplest logic I can muster I'm going to assume that the file, supplied by an email newsletter, was below the legal limit for length when downloaded, file history was added, doubling the length of the file and pushing it over the legal limit for length.
Delete, shorten, rename, move and edit are now impossible  mad
What to do  huh
Simple  Cool
Remove the straw that broke the camel's back  tongue
Delete file history Wink
now smartass....... delete the file without incident cheesy
Sometimes I'm so smart I get nauseous  embarassed

Logged
MilesAhead
Member
**
Posts: 4,868



View Profile WWW Give some DonationCredits to this forum member
« Reply #15 on: September 28, 2014, 02:37:39 PM »

This seems circular.  I've contributed my small knowledge of the issue.  I don't have the problem so I'm not really in search of a solution.  Evidently you feel likewise.

Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
Cuffy
Participant
*
Posts: 374

View Profile Give some DonationCredits to this forum member
« Reply #16 on: September 28, 2014, 03:56:52 PM »

I appreciate your input, MilesAhead, and I am traveling in circles, especially mentally  embarassed
I've continued to research this phenomenon and am getting more confused with each click.

1. The file history feature only applies to Win8.1 and Win8.1RT so if you're not running one of those O/Ss you would have no way of knowing what's going on with my system.

2. The file history feature only works on Library files, such as Documents, etc. The files giving me trouble weren't in a Library folder. They weren't even on the boot drive. They appeared when I moved the folder from C:\All Downloads to D:\ Save, so they were never even in a Library folder.

3. File History is turned OFF on this machine!
That being the case there was no file history, deleting file history didn't actually do Anything and why clicking on it allowed me to delete the unwanted file is a mystery again  huh

I've scrolled through hundreds of folders looking for more of the unwanted files but none were found. I've been unable to duplicate the event by downloading the files from that newsletter again.
Leaving me nowhere  Angry . I can't run any more tests until I get more of those files and that may be a year or more away  undecided

I'm betting that with an O/S other than 8.1 the solution lies in the permissions. I tried editing the permissions in the last files I found and allowing Everyone full control let me delete them from the HDD, bypassing the Recycle Bin.
That's all I know  embarassed
Thanks again for your input and if or when I get a similar event I shall return.
 Grin


Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.049s | Server load: 0.14 ]