Error adding FLATTEN to context menu

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

: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: 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: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
billgilliss
Posts: 7
Joined: 26 Feb 2026 17:01
Location: Windows 11, XYplorer 28.20.0300, 2560x1440

Error adding FLATTEN to context menu

Post by billgilliss »

Hi - When adding FLATTEN FOLDER to the context menu for either the Folder tree or the File List, I get the following error message: "Shutdown Run-time error '91' Object variable or With block variable not set." FLATTEN FOLDER is the main reason I bought XYplorer in the first place, so this is kind of distressing. I'm brand new to the program.

Windows 11, XYplorer 28.20.0300, 2560x1920
To see the attached files, you need to log into the forum.

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

Re: Error adding FLATTEN to context menu

Post by highend »

When exactly?

After checking the [ ] Flatten Folder in the dialog window?
When hitting "OK" in the same dialog?
2026-02-26_17-35-51.png
When exiting the Configuration... dialog window with "OK"?

Does it work in a fresh XY instance?
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

billgilliss
Posts: 7
Joined: 26 Feb 2026 17:01
Location: Windows 11, XYplorer 28.20.0300, 2560x1440

Re: Error adding FLATTEN to context menu

Post by billgilliss »

Every time immediately after hitting "Okay." Yes, fresh instance.

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

Re: Error adding FLATTEN to context menu

Post by admin »

Can't reproduce. Does it only happen with Flatten Folder or also with other settings?

billgilliss
Posts: 7
Joined: 26 Feb 2026 17:01
Location: Windows 11, XYplorer 28.20.0300, 2560x1440

Re: Error adding FLATTEN to context menu

Post by billgilliss »

This happens with all the Context Menu > Folder Tree and Context Menu > File List options.

It doesn't happen with anything else in Mouse, Menus, Usability.

jupe
Posts: 3448
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Error adding FLATTEN to context menu

Post by jupe »

It's bizarre the error has "shutdown" as the window caption, I don't think I have ever seen one of those errors that has anything other than "XYplorer", also that :!: icon looks like the old comctl version that has 3d shading.

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

Re: Error adding FLATTEN to context menu

Post by admin »

I think the error and the icon are owned by twinBASIC.

billgilliss: does it also happen when you do not change any checkboxes and just click OK? Or just click Cancel?

billgilliss
Posts: 7
Joined: 26 Feb 2026 17:01
Location: Windows 11, XYplorer 28.20.0300, 2560x1440

Re: Error adding FLATTEN to context menu

Post by billgilliss »

No, it does not happen if I just click OK or cancel. Only with the Folder Tree and File List options.

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

Re: Error adding FLATTEN to context menu

Post by admin »

I meant the OK in the Folder Tree and File List options.

billgilliss
Posts: 7
Joined: 26 Feb 2026 17:01
Location: Windows 11, XYplorer 28.20.0300, 2560x1440

Re: Error adding FLATTEN to context menu

Post by billgilliss »

I'll check.

In the mean time, it turns out that File Explorer can do just what I wanted in the first place:

Method 1: Using Windows File Explorer
Open the main folder containing all the subfolders.
In the top-right corner search bar, type * and press Enter. This tells Windows to search for all files within subfolders.
Wait for the search to complete, then press Ctrl+A to select all files.
Drag and drop or copy and paste the selected files into your target destination folder.
If files have the same name, Windows will prompt you to rename them or skip them.

Post Reply