User-Defined Commands


User-Defined Commands (UDCs) are menu commands that let you decide
where to place them in the menu,
what their caption is, and
what they do when clicked.
As with all menu commands in XYplorer, you can optionally assign keyboard shortcuts to them.

UDCs are all located in the User menu. At the top of this menu you will find the item "Manage Commands...". Let's take a look at some examples...

Example #1: Going to Mars

Do you have to visit D:\Company\Projects\2024\MarsLanding\TopSecret\ about 25 times a day, 7 days a week? How about a keyboard shortcut, e.g. Ctrl+Shift+M, to get you there?

Here you go:

Open menu User | Manage Commands...
Select category "Go To" and click button "New".
Paste D:\Company\Projects\2024\MarsLanding\TopSecret\ into the Location field, and MarsLanding into the Caption field.
Click button "Assign Keyboard Shortcut..." and select Ctrl+Shift+M.
Click button "Apply", and Exit the dialog with "OK".

Managing user commands. (Click to enlarge)

Pressing Ctrl+Shift+M now will instantly beam you up to D:\Company\Projects\2024\MarsLanding\TopSecret\
from wherever you are (assuming the folder exists, of course). It's as simple as that!

A corresponding new menu item "MarsLanding" has been automatically created in the User | Go To menu.

Example #2: Go to the URL in the Clipboard with Firefox

There's a URL on the clipboard that you want to visit with Firefox? A UDC of type "Open" is the fastest way to do this. Just set the Item field to
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" <clipboard>
(adapt the path to your system, of course!), and assign Ctrl+Alt+F as the shortcut. Now you can use Firefox to open URLs stored in the clipboard with a simple keyboard shortcut.

This page was last updated on 2024-01-11. Screenshots do not necessarily reflect the current look and feel of the application. Some of the functionality may have been changed or enhanced in the current version.