Page 1 of 1

Source File Name Too Long

Posted: 08 Jul 2015 15:55
by arv1956
I've downloaded and tried version 15.40.0100 to assist me to remove a folder and directory structure with an enormous name created by Robocopy but unfortunately XYPlorer also fails to delete it.

Re: Source File Name Too Long

Posted: 08 Jul 2015 16:22
by highend
Configuration > Controls and More > Miscellaneous > Support overlong filenames

Is that checked?

Message of XY when you try to delete that folder?

Re: Source File Name Too Long

Posted: 09 Jul 2015 10:04
by arv1956
Thanks for your response 'highend'

Yes the 'Support overlong filenames' box is checked and the message back when I try to delete the folder is:

"The source file name(s) are larger than is supported by the file system. Try moving to a location which has a shorter path name or try renaming to shorter name(s) before attempting this operation."

Thanks again

Alan

Re: Source File Name Too Long

Posted: 09 Jul 2015 15:45
by highend
Mh, the message that I get is a different one (but it's not an error message) and deleting overlong paths / files isn't a problem on my system...

One way how you can (probably) solve it:
- Navigate to the file / folder you can't delete in XY
- Enter this in the address bar and hit enter afterwards:

Code: Select all

text quote(regexmatches(substr("<curpath>", 0, 250), "^.*(?=\\)"));
- Copy everything from the textbox including the quotes to the clipboard
- Open a command prompt
Use: subst <a free drive letter on your system:>
and paste the clipboard content behind it (one space between the double colon and your first quotation mark)
E.g.: subst F: "C:\Programs\<many other subfolders or whatever your structure looks like>"
- Hit enter
- Navigate to the new drive letter inside XY
- Navigate to the folder / file you want to delete and do it
- When you're done, goto back to the command prompt and delete the subst via:
subst <the drive letter you've used a few moments ago:> /D
E.g.: subst F: /D

The whole thing could be scripted if you're using the pro version and [x] Remember permanent variables is checked