Unable to delete long folder path when shell is used.

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Unable to delete long folder path when shell is used.

Post by PeterH »

admin wrote:
PeterH wrote:Will the user be able to decide which to use?

OK: for long names he can - but for short names?
Sure, it will be a separate command.
Oh sorry: I meant just the opposite :roll:

How will the user decide when he should take one or the other command?

And why not always take the command able to handle the overlong paths? (Then the other would not be needed...)

Zardoz2293
Posts: 638
Joined: 09 Nov 2011 20:20
Location: USA

Re: Unable to delete long folder path when shell is used.

Post by Zardoz2293 »

Why would it be a separate command? It should be like the normal delete. However, if it's unable to delete it as it's 260 bytes plus, then it give notice and ask if you want to perform permanent delete. It's like saving the current root delete path and upon return from the delete if the root delete path still exists we know we have crap that's 260 bytes and beyond, so engage the permanent delete (perhaps prompt the user to proceed or cancel).
XYplorer v28.50.0101

MacOS Tahoe v27.2.1 ; Parallels for Mac
VM (Client): Windows 11 Pro (AArch64), 26H2.26300.10075(10.0)
Display: Main=MacBook 4112 x 2570 @200%; External 3840 x 2160 @125%

admin
Site Admin
Posts: 67328
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Unable to delete long folder path when shell is used.

Post by admin »

I'll call it it "Delete Long". This name fits well into the delete section of the File Special submenu, and it tells what it's there for. You only need this command for overlong names.

"Permanent Delete" is also a correct name, but:
- also "Delete (No Recycle Bin)" is a permanent delete, only performed by the shell
- "Permanent Delete" seems to suggest something in the line of Wipe, which is misleading

It is important to have an extra command because:
- automatic detection of the necessity of a Delete Long (for items under the selected items) would be too slow (and is already implemented for the case that the selected items are overlong)
- for the marketing effect: google for "path too long" and you see a big demand for a function that can delete overlong items. "Delete Long" comes to rescue.
- the shell command "Delete (No Recycle Bin)" should be kept for those users who like the nice animated interface or whatever gimmicks the shell will offer in future Windows.

Zardoz2293
Posts: 638
Joined: 09 Nov 2011 20:20
Location: USA

Re: Unable to delete long folder path when shell is used.

Post by Zardoz2293 »

admin wrote:It is important to have an extra command because:
Is this going to be an option that allows those who want it always invoked to be turned on, if they desire?
XYplorer v28.50.0101

MacOS Tahoe v27.2.1 ; Parallels for Mac
VM (Client): Windows 11 Pro (AArch64), 26H2.26300.10075(10.0)
Display: Main=MacBook 4112 x 2570 @200%; External 3840 x 2160 @125%

admin
Site Admin
Posts: 67328
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Unable to delete long folder path when shell is used.

Post by admin »

It's a command, you'll see it soon.

grindax

Re: Unable to delete long folder path when shell is used.

Post by grindax »

.
Last edited by grindax on 22 Jan 2016 23:50, edited 1 time in total.

admin
Site Admin
Posts: 67328
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Unable to delete long folder path when shell is used.

Post by admin »

That's why you can turn it on/off: Configuration | Advanced | Support overlong filenames

Zardoz2293
Posts: 638
Joined: 09 Nov 2011 20:20
Location: USA

Re: Unable to delete long folder path when shell is used.

Post by Zardoz2293 »

grindax wrote:Something I've been wondering: If 260+ character paths have the potential to cause problems (interoperability failures, incompatibility, etc.) in general, then why is it considered a good thing to support such long paths, whether that be creating them or manipulating them?
The problems exist (short filename/pathname) as software hasn't been updated to use the new routines/functions/methods/Win32 API for long-name support. Amazingly, Microsoft had this problem for well over 10 years in their products (and still does in some products).
grindax wrote:I've only skimmed through articles such as this:
http://msdn.microsoft.com/en-us/library ... s.85).aspx
but it sounds like trying to work with 260+ paths is a bad idea and goes against established conventions and limitations.
I think this argument is to support their inability to correct their own products which created much distress with regard to this subject (Office). Apparently eye candy (ribbon) features were more important than resolving long path support.
grindax wrote:Wouldn't someone who somehow ended up with such long paths be better off simply identifying and rectifying any paths/names which are too long? Which would mean shortening or deleting being the only advisable actions. Have I understood this correctly?
This was one method necessary to work with the MS Office product on some versions. This is one reason why the "Users" folder structure has changed so much. It was quarter-baked when done in Windows 95 and it's evolved from there. Frankly, why would anyone want 260 characters or less support? To top it off, I'm not aware of any capability in the OS where you can check off you don't want anything created that would exceed 260 bytes. It's a real mess and don't expect it to be resolved until iOS becomes the industry leader or another decade goes by as bells and whistles, eye candy are the primary focus. I'd pay for any update to the Windows if it only included all known reported bugs; but then the people of the world would be compelled to create an Earth day holiday! :mrgreen:
XYplorer v28.50.0101

MacOS Tahoe v27.2.1 ; Parallels for Mac
VM (Client): Windows 11 Pro (AArch64), 26H2.26300.10075(10.0)
Display: Main=MacBook 4112 x 2570 @200%; External 3840 x 2160 @125%

RalphM
Posts: 2145
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Unable to delete long folder path when shell is used.

Post by RalphM »

Zardoz2293 wrote:...I'd pay for any update to the Windows if it only included all known reported bugs...
No need, you probably already paid for all the bugs, even the yet unreported ones, he he.

Sorry, just couldn't resist :kidding:
Ralph :)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)

Zardoz2293
Posts: 638
Joined: 09 Nov 2011 20:20
Location: USA

Re: Unable to delete long folder path when shell is used.

Post by Zardoz2293 »

RalphM wrote:
Zardoz2293 wrote:...I'd pay for any update to the Windows if it only included all known reported bugs...
No need, you probably already paid for all the bugs, even the yet unreported ones, he he.

Sorry, just couldn't resist :kidding:
You are very funny AND absolutely correct. :D
XYplorer v28.50.0101

MacOS Tahoe v27.2.1 ; Parallels for Mac
VM (Client): Windows 11 Pro (AArch64), 26H2.26300.10075(10.0)
Display: Main=MacBook 4112 x 2570 @200%; External 3840 x 2160 @125%

Zardoz2293
Posts: 638
Joined: 09 Nov 2011 20:20
Location: USA

Re: Unable to delete long folder path when shell is used.

Post by Zardoz2293 »

I like how it works. However, I really feel there needs to a configuration setting that would allow the delete operation to work:
  • Delete:
  • Recycle Bin = Checked/Unchecked
    OR
  • Remove Long = Checked/Unchecked

    WITH
  • Skipped Locked = Checked/Unchecked
  • Wipe = Checked/Unchecked
In my environment, the I always want delete to remove long paths. Would be great to have the ability to delete all long paths with skipping locked or added wipe as standard in the delete operation.

Code: Select all

+ Menu File | File Special: Added command "Delete Long". Use it to
      delete the selected Tree or List item(s) even when they have
      overlong paths (> 260 characters). The deletion is permanent since
      the Recycle Bin does not support items that long.
      The action is listed in the Action Log but cannot be undone.
XYplorer v28.50.0101

MacOS Tahoe v27.2.1 ; Parallels for Mac
VM (Client): Windows 11 Pro (AArch64), 26H2.26300.10075(10.0)
Display: Main=MacBook 4112 x 2570 @200%; External 3840 x 2160 @125%

admin
Site Admin
Posts: 67328
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Unable to delete long folder path when shell is used.

Post by admin »

That could be added to the Nuke command/button. We'll see how big the demand for this is...

BTW, Wipe always handles overlong names (if overlong name support is enabled). There is a little problem with speed though, that will be fixed in the version.

Zardoz2293
Posts: 638
Joined: 09 Nov 2011 20:20
Location: USA

Re: Unable to delete long folder path when shell is used.

Post by Zardoz2293 »

admin wrote:That could be added to the Nuke command/button. We'll see how big the demand for this is...

BTW, Wipe always handles overlong names (if overlong name support is enabled). There is a little problem with speed though, that will be fixed in the version.
Ladies and Gentlemen, I'm a simple man. I'm seeing it implemented when I press the "delete" key (and it would be defined how it operates via the configuration).

I tested the feature and like the functionality. However, going through the menu to delete is awkward. So this means, that I'll do the normal delete (keyboard). Get an error dialog it can't be performed. Get another dialog message. Then do Menu | File Special | Delete Long. :roll: :? :shock: :veryconfused:
XYplorer v28.50.0101

MacOS Tahoe v27.2.1 ; Parallels for Mac
VM (Client): Windows 11 Pro (AArch64), 26H2.26300.10075(10.0)
Display: Main=MacBook 4112 x 2570 @200%; External 3840 x 2160 @125%

admin
Site Admin
Posts: 67328
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Unable to delete long folder path when shell is used.

Post by admin »

Zardoz2293 wrote:
admin wrote:That could be added to the Nuke command/button. We'll see how big the demand for this is...

BTW, Wipe always handles overlong names (if overlong name support is enabled). There is a little problem with speed though, that will be fixed in the version.
Ladies and Gentlemen, I'm a simple man. I'm seeing it implemented when I press the "delete" key (and it would be defined how it operates via the configuration).
Well, simply map DEL key to Delete Long.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Unable to delete long folder path when shell is used.

Post by highend »

Please reconsider changing the wipe command...

It was lightning fast before and now it's slow as hell.

1,27GB test file, it took less than 30 seconds to wipe it (beyond recovery) and now with .0015 it takes more than three minutes.
There is a little problem with speed though, that will be fixed in the version
Is this a version > .0015 or should that change already have taken place in the current one?
One of my scripts helped you out? Please donate via Paypal

Post Reply