# Creating cascading menu commands

**URL:** <https://resource.dopus.com/t/creating-cascading-menu-commands/42037>\
**Category:** Help & Support\
**Tags:** commands\
**Created:** [August 24, 2022, 1:44pm UTC](https://resource.dopus.com/t/creating-cascading-menu-commands/42037 "2022-08-24T13:44:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![FileMgr](https://resource.dopus.com/letter_avatar_proxy/v4/letter/f/a88e57/32.png) [@FileMgr](https://resource.dopus.com/u/FileMgr)\
**Post date:** [August 24, 2022, 1:44pm UTC](https://resource.dopus.com/t/creating-cascading-menu-commands/42037/1 "2022-08-24T13:44:07Z")

</div>

I'm trying to make a cascading menu for four file commands: **Select all | Invert | Select None | Select Wildcard**. Looking for tutorials on cascading context menus I ran into the [cascading folders contents](https://resource.dopus.com/t/adding-cascading-folder-content-to-your-context-menus/5500) but that techique doesn't seem to work for file commands. Is there another way to accomplish this?

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 24, 2022, 2:01pm UTC](https://resource.dopus.com/t/creating-cascading-menu-commands/42037/2 "2022-08-24T14:01:30Z")

</div>

Create them where?

Cascading in which sense? Just a sub-menu or something more?

---

<div class="post-metadata">

**Author:** ![FileMgr](https://resource.dopus.com/letter_avatar_proxy/v4/letter/f/a88e57/32.png) [@FileMgr](https://resource.dopus.com/u/FileMgr)\
**Post date:** [August 25, 2022, 12:25pm UTC](https://resource.dopus.com/t/creating-cascading-menu-commands/42037/4 "2022-08-25T12:25:55Z")

</div>

For the right-click context menu for drives, folders and files, I am trying to create a cascading menu item like the illustration, below.

 ![Context](https://resource.dopus.com/uploads/default/original/3X/7/e/7e0fb6d2dd87c6e827545d79132a14ff2f19ef53.gif)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 25, 2022, 1:10pm UTC](https://resource.dopus.com/t/creating-cascading-menu-commands/42037/5 "2022-08-25T13:10:15Z")

</div>

You can edit those menus via Settings \> File Types.

For moving/removing items added by other software, see: [Tip: Organise and Speed-Up Context Menus](https://resource.dopus.com/t/tip-organise-and-speed-up-context-menus/1204)

But the right-click menu for drives/folders/files are not where things which like "Select All" which work on the current folder really belong. Those menus should contain items which work on the thing which was right-clicked.

The background menu for the folder is the proper place for things like "Select All", and that can be edited via Settings \> Customize Toolbars \> Context Menus.

---

<div class="post-metadata">

**Author:** ![FileMgr](https://resource.dopus.com/letter_avatar_proxy/v4/letter/f/a88e57/32.png) [@FileMgr](https://resource.dopus.com/u/FileMgr)\
**Post date:** [August 25, 2022, 6:50pm UTC](https://resource.dopus.com/t/creating-cascading-menu-commands/42037/6 "2022-08-25T18:50:21Z")

</div>

@Leo, thank you for the [Tip: Organise and Speed-Up Context Menus](https://resource.dopus.com/t/tip-organise-and-speed-up-context-menus/1204). That helped clean up a lot of clutter.

On the cascading menu advice, I'm still confused. The file/folder commands I added to DO work fine, they are just not cascaded. When I drilled down to the dialog you recommended, I don't see any mention of cascading menu. See illustration.

 ![My PC](https://resource.dopus.com/uploads/default/original/3X/9/1/91de36eeef66128eff3a101c2a12bc5e1ce01b4d.gif)

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [August 25, 2022, 6:52pm UTC](https://resource.dopus.com/t/creating-cascading-menu-commands/42037/7 "2022-08-25T18:52:44Z")

</div>

Lister Context is the menu that appears when you right-click the file display background.

You can add sub-menus to it by right-clicking it while it is being edited, then use the Insert New \> New Menu option.
