Version: 1.3.5 Author: Vladimirs Kuznecovs License: Copyright © 2026 Vladimirs Kuznecovs Framework: .NET Framework 4.6.2 (Windows Forms)


Overview

trutility is a system-tray launcher utility for Windows. It builds a dynamic right-click menu from two watched folders - a shared Global folder and a per-user User folder - so shortcuts, scripts, RDP connections, and management consoles are always one click away from the notification area. The menu refreshes automatically when files are added or removed, shell integration lets you add any file directly from Explorer, and all settings are stored in the registry with per-machine defaults and per-user overrides.


Core Features

FeatureDescription
System tray launcherPersistent NotifyIcon; right-click or left-click opens the dynamic launch menu
Dual-folder architectureScans a Global folder (all users) and a User folder (current user); user entries override global entries with the same name
Folder-mirrored submenusSubfolder hierarchy is reflected as nested submenus; files appear above subfolders within each level
Live file monitoringFileSystemWatcher on both roots; menu rebuilds automatically on any change with a 400 ms debounce
Shell context menu integrationRight-click any file or folder in Explorer → “Add to trutility” copies it as a shortcut to the User folder
Separator suffixesAppend $^, $_, or $^_ to a filename stem to insert dividers above, below, or both sides of that item
Mouse modifiersNormal click = launch; Shift+click = Run As Administrator; Ctrl+click = delete from User folder
Startup managementOptionally create a per-user startup shortcut via the Settings dialog
Tray icon pinningOptionally keep the icon permanently visible in the notification area (sets IsPromoted = 1 via registry)
Single-instance protectionNamed mutex prevents multiple tray instances from running simultaneously
CLI add commandtrutility.exe --add "path" creates a shortcut in the User folder and exits - used by the shell verb
Policy supportHKLM registry keys set machine-wide defaults; HKCU overrides per user - suitable for enterprise deployment

CLI Commands

trutility.exe [options]
CommandDescription
(no args)Launch the system-tray GUI
--add "path"Create a .lnk shortcut for the given file or folder in the User folder, then exit (no GUI launched)

Examples

trutility.exe
trutility.exe --add "C:\Windows\System32\eventvwr.msc"
trutility.exe --add "C:\Work\Servers\server01.rdp"

Folder & Menu Structure

Watched Folders

FolderScopeDefault PathRegistry Override
GlobalAll users%ProgramFiles%\trutilityHKLM\SOFTWARE\trutility\GlobalRoot
UserCurrent user%MyDocuments%\trutilityHKCU\SOFTWARE\trutility\UserRoot
  • Global folder is scanned first; User folder is scanned second.
  • If both folders contain an entry with the same name, the User entry takes precedence.
  • A visual separator is automatically inserted between the global and user sections when both have content.

Supported File Types

Any shell-executable file is supported. Extensions .lnk and .url are hidden from the display name (the shortcut name is shown without the extension); all other extensions are shown as-is.

TypeExampleNotes
Executabletool.exeShown as “tool.exe”
MMC snap-ineventvwr.mscShown as “eventvwr.msc”
RDP sessionserver01.rdpShown as “server01.rdp”
Windows shortcutNotepad.lnkShown as “Notepad” (extension hidden)
Internet shortcutPortal.urlShown as “Portal” (extension hidden)

Separator Suffixes

Append a suffix to the filename stem (before the extension) to place separator lines around an item in the menu.

SuffixEffect
$^Separator above the item
$_Separator below the item
$^_ or $_^Separators above and below the item

Example: a file named GPUpdate$^.lnk displays as “GPUpdate” with a divider line above it.

File Filtering

The following files are ignored during scanning and never appear in the menu:

  • desktop.ini
  • thumbs.db

Mouse Modifiers

ActionResult
ClickLaunch the item normally
Shift + ClickLaunch elevated (Run As Administrator; UAC prompt if required)
Ctrl + ClickDelete the item from the User folder immediately, with no confirmation prompt. Items from the Global folder cannot be deleted via this shortcut.

Settings

Settings are stored in the Windows registry under HKCU\SOFTWARE\trutility (user preferences) and HKLM\SOFTWARE\trutility (machine-wide policy defaults). The Settings dialog is accessible from the tray icon’s context menu. HKCU values take priority over HKLM. HKLM keys are intended for enterprise deployments where an administrator sets default values via Group Policy or a deployment script.

SettingKeyTypeDescription
User folder rootUserRoot (HKCU)StringCustom path for per-user shortcuts. Falls back to HKLM\UserRoot, then %MyDocuments%\trutility
Global folder rootGlobalRoot (HKLM)StringCustom path for shared shortcuts. Falls back to %ProgramFiles%\trutility
Shell context menuAddToShellDWORD1 = register “Add to trutility” in Explorer for files and folders; 0 = unregister
Run at startup(Startup folder shortcut)LNK fileCreates or removes a shortcut in the user’s Startup folder via WScript.Shell
Pin icon to trayPinToTrayDWORD1 = sets IsPromoted = 1 under NotifyIconSettings so the icon is always visible; 0 = default Windows behaviour

System Tray & GUI

Tray Menu Structure

[Global folder items]
──────────────────── (thick class separator when both folders configured)
[User folder items]
────────────────────
Settings / About
Exit

Tray Menu Items

Menu ItemDescription
File itemsEach file in the watched folders appears as a clickable menu entry with its shell icon (16×16)
Subfolder itemsSubfolders appear as submenus mirroring the folder hierarchy
Settings / AboutOpens the Settings & About dialog
ExitCloses trutility

Settings & About Dialog

  • Info area - version, author, contact, and brief usage instructions
  • Settings group - three checkboxes:
    • Enable “Add to trutility” in Explorer context menu
    • Run at startup (checkbox is disabled when a machine-level policy is applied)
    • Pin icon to tray
  • User folder location group - displays the current User folder path, with a “Change…” button (opens FolderBrowserDialog) and a “Reset” button (removes the HKCU override, reverting to the default path)
  • Action buttons:
    • “Open Global folder” - opens the Global folder in Explorer
    • “Open User folder” - opens the User folder in Explorer
    • “OK” - saves all settings and closes the dialog

Shell Context Menu Integration

When enabled, trutility registers shell verbs so that any file or folder in Windows Explorer has an “Add to trutility” option in its right-click menu.

  • File verb registered under: HKCU\Software\Classes\*\shell\AddToTrutility
  • Folder verb registered under: HKCU\Software\Classes\Folder\shell\AddToTrutility
  • The command invokes trutility.exe --add "path", which creates a .lnk shortcut in the User folder.
  • The verb can be toggled on or off from the Settings dialog.
  • If AddToShell is set in HKLM, the checkbox in the Settings dialog reflects the policy state.

Registry Reference

Registry Path & ValueTypePurpose
HKLM\SOFTWARE\trutilityGlobalRootStringGlobal folder path
HKLM\SOFTWARE\trutilityUserRootStringPolicy default for user folder
HKLM\SOFTWARE\trutilityAddToShellDWORDPolicy default for shell verb
HKLM\SOFTWARE\trutilityPinToTrayDWORDPolicy default for tray pin
HKCU\SOFTWARE\trutilityUserRootStringPer-user folder path override
HKCU\SOFTWARE\trutilityAddToShellDWORDShell verb enabled (1) / disabled (0)
HKCU\Software\Classes\*\shell\AddToTrutility-File Explorer context menu verb
HKCU\Software\Classes\Folder\shell\AddToTrutility-Folder Explorer context menu verb
HKCU\SOFTWARE\trutilityPinToTrayDWORDTray pin preference
HKCU\Control Panel\NotifyIconSettings(GUID) IsPromotedDWORDPermanent tray visibility

Requirements

  • Windows 7 or later (Windows 10/11 recommended)
  • .NET Framework 4.6.2
  • Administrative privileges are not required for normal use; the Global folder and machine-level registry keys require elevation to modify