Skip to content

Nilesoft Shell Pro 2.3.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 18:57
· 47 commits to main since this release
v2.3.0
6fbe4a0

Nilesoft Shell Pro 2.3.0 is a community fork of Nilesoft Shell by Moudey and Nilesoft: the same context-menu extension and .nss configuration language, with security and stability fixes, a per-user mode that needs no administrator rights, and an app to set it up and configure it. It is not an official Nilesoft release.

Caution

If the original Nilesoft Shell is installed, uninstall it before installing Nilesoft Shell Pro. Pro has its own name and does not replace the original (installed with its own installer, winget, Scoop or Chocolatey, or a portable copy), so both stay registered with Explorer and collide: the context menu can stop appearing or show up twice. Uninstall it from Settings > Apps > Installed apps; for a portable copy run shell -unregister -restart from its folder and delete the folder. Back up your shell.nss and imports folder first if you want to keep your configuration. Updating from an earlier Nilesoft Shell Pro version is fine.

Documentation: https://abdullah-masood-05.github.io/Shell/. About this fork there lists everything this fork changes, and each earlier release lists its own changes.

What's new in 2.3.0

This release mostly adds new functions and values for your menu files, many of them from RubicBG's ReShell (shared with his permission). It also reworks the Menu map in the Settings app so each tab shows the menu as it really opens, and lets you move and reorder Windows items there too. The app is now available in Arabic, and several crashes and wrong results in the menu are fixed.

This version changes the Shell core, so updating from the app asks for administrator approval once.

What's new, in short

  • Menu map shows the real menu. Each tab (file, folder, desktop, taskbar, This PC and more) lists the menu as it really opens there, your items and Windows' items together. You can hide, rename, move, reorder or change the icon of any item from there.
  • Many new functions for your menu files, many from RubicBG's ReShell: remember values between menus, Save As and folder boxes, drop-down lists, battery, memory and screen details, the files you copied, and more. Long-standing bugs in colors, key.ctrl(), str.split and the type.* values are fixed.
  • Windows 11 shows Shell's menu again after the November 2026 update (KB5132061), with no ViVeTool or other tweaks, and Control Panel opens again with Shell installed.
  • The first taskbar right-click after you sign in shows Shell's menu when Shell is installed for all users.
  • The app is available in Arabic.
  • Snippets: a preview on your own wallpaper before you add one, and new snippets such as Play in MPC-BE and Quick tools.
  • Backups keep all your files, such as your own icons, not only the .nss files.
  • Fixes: New folder on the desktop no longer crashes File Explorer, System > Empty Recycle Bin works, and menu items a program draws itself, such as XnView's image preview, show again.

New things you can write in your menu files

  • str.fmt fills values into a text: str.fmt('{0} of {1}', sel.count, 10) gives "2 of 10". str.format does the same; before, it returned nothing.
  • app.set, app.get, app.exists and app.remove remember a value between menus, even after a restart. For example cmd=app.set('fav', sel.dir) on one item and cmd=app.get('fav') on another gives you a folder you can come back to. Values are kept for your Windows account only.
  • path.file.save_box shows a Save As box and gives back the path that was chosen, for example path.file.save_box('Text|*.txt', user.desktop, 'list.txt').
  • path.dir.box can start in a folder and show your own title: path.dir.box(sel.dir, 'Pick a folder').
  • path.absolute('..\backup') and path.relative(sel.path) turn a path into a full one, or into one that starts from the folder you right-clicked in. Before, both returned nothing.
  • io.move can move a file to another drive, and takes an optional third value to replace a file that is already there.
  • input() can show a drop-down list to pick from: input('Size', 'Pick a size', '', ['Small', 'Medium', 'Large']). input.selected tells you which item was picked.
  • indexof() accepts a number as the place to put an item when nothing matches.
  • key.return works as a name for the Enter key, as the docs already said.
  • appx() can tell you more about a Microsoft Store app: appx('WindowsTerminal', 'executable') gives its program file, and appx.logo, appx.square44 and appx.square150 give its pictures, so an item can show the app's own icon.
  • sel.lnk.args gives the arguments of a shortcut, and sel.lnk.raw gives its target and arguments together. path.lnk.args and path.lnk.raw do the same for any shortcut path.
  • sys.power.battery gives the battery charge, for example item(title='Battery: ' + sys.power.battery + '%' where=sys.power.battery >= 0). sys.power.is_charging and sys.power.is_ac tell you how the PC is powered.
  • sys.memory, sys.memory.free and sys.memory.total show how much memory is in use and free. sys.cpu.count gives the number of processors Windows sees.
  • sys.screen.width, sys.screen.height and sys.screen.count describe your screens. sys.lang.full gives the Windows display language by name, such as "English (United States)".
  • sel.drop gives the folder you drop files into when you drag them with the right mouse button, so an item in that menu can work with the place you dropped them. It works in the file list of a File Explorer window and on the desktop, and is empty anywhere else.
  • user.groups lists the Windows groups you are in, and user.groups('Remote Desktop Users') tells you whether you are in one. You can also name a group by its SID, such as 'S-1-5-32-544', which works whatever language Windows is in. Administrators only counts when File Explorer runs as administrator.
  • command.refresh(2) refreshes the folder and also rebuilds the Windows icon cache, for icons that show wrong.
  • sel.item gives the path of the item a command is running for, and type.cd is another name for type.dvd.
  • New, and off unless you turn it on: settings.filemanagers lets Shell's menu see the files you right-click in other file managers, such as Total Commander, XYplorer, Double Commander and Everything. List the programs, for example filemanagers = ['totalcmd64', 'xyplorer'], and let Shell's menu into them in exclude.where. It has had little testing so far, so tell us how it goes. The Settings page explains it.
  • menu='/' on an item inside one of your submenus puts it in the main menu, as it already did for modify().
  • In modify(), menu='/' now also keeps an item in the main menu: the rules after it don't move it into a submenu. So a rule can take back a move that a later file, such as the bundled modify.nss, makes.
  • run, exec, launch, cmd and shell take up to six values: the file, its arguments, how to open it (such as 'runas' or 'open'), the folder it starts in, how its window shows, and whether to wait for it to close. For example run('cmd.exe', '/c ipconfig /flushdns', 'runas', null, cmd.hidden, 1). The older forms still work, and the folder is still the one you right-clicked in unless you give another.
  • clipboard.is_files tells you when files were copied or cut in File Explorer, and clipboard.files gives their paths: clipboard.files[0] is the first, clipboard.files.count says how many, and clipboard.files.name(', ') lists their names.
  • this.tip and this.key give an item's tip and the shortcut text at its right. this.parent.title, .name, .tip, .key, .id and .count describe the submenu the item is in, so a modify() rule can pick items by the menu they are in. Before, this.parent.title gave a number.
  • Your menu files can read the theme in use: theme.name, theme.font and theme.font.size, theme.border.radius, theme.item.radius, theme.shadow.size, theme.separator.color and more, so your items can match the menu. The Themes page lists them all.
  • wnd.is_dialog is true when you right-click inside an Open or Save As box, and command.navigate now works there too: it opens the folder in the box and keeps the file name you typed. For example item(title='Desktop' where=wnd.is_dialog cmd=command.navigate(user.desktop)).
  • path.dir.boxl shows the older Browse For Folder box, with the folders as a tree, and gives back the folder you picked: path.dir.boxl(sel.dir, 'Pick a folder').
  • command.empty_recycle_bin empties the Recycle Bin on every drive, with Windows' own progress window. It doesn't ask first, so put a msg() question in front of it, as System > Empty Recycle Bin does.

Fixes

  • key.ctrl() is true while Ctrl is held. Before, it never was.
  • col= no longer removes the keys= text of the same item.
  • color.rgb(255, 0, 0) and color(255, 0, 0) give red. Red and blue were swapped and the color was see-through.
  • color.random gives a random visible color. Before, it was always black and see-through.
  • type.file, type.dir and the other type.* names give their numbers, and path.type('C:\Windows') tells you what a path is. A snippet that compared these could never match before.
  • sel.type(5) with fewer items selected no longer crashes Explorer.
  • theme.item.back.select and the other theme.item color names give the theme's colors. theme.item.border.normal and theme.item.border.select are new.
  • cmd.show, cmd.visible and shell.maximized and its friends give their values. Before, they returned nothing.
  • sys.is7orgreater, sys.is8orgreater and sys.is81orgreater are true on Windows 10 and 11.
  • The config check accepts sys.datetime.s, .h, .d, .dw and .m, which already worked in menus.
  • this.type gives 0 for an item, 1 for a menu and 2 for a separator for the items you add too, as documented. If you worked around the old numbers, check those lines.
  • str.split('a,,b', ',') gives the two parts "a" and "b". Before, it gave one part, "a,b".
  • reg.get and reg.set handle binary values, and reg.keys and reg.values no longer cut long names short.
  • var.name[0] picks one part of a var value, as $name[0] does, and asking for a place past the end of a text gives nothing instead of garbage.
  • A round (radial) gradient in a theme is centred across the menu.
  • An item inside one of your submenus with menu= shows in the menu it names even when you haven't opened its own submenu first.
  • In run('app.exe', 'arguments', cmd.hidden) and shell(file, arguments, verb, cmd.maximized), the window value now sets how the window shows. Before, it only decided whether to wait for the program.
  • A PowerShell script of several lines in cmd-ps= or cmd-pwsh= runs in full. Before, only its first line ran. Switches such as -NoExit can still go before the script.
  • The first right-click on the taskbar after you sign in shows Shell's menu. Before, it showed Windows' own menu until you had right-clicked the desktop or a folder once, because Shell only loaded then. Installing or registering for all users now adds the entry that makes File Explorer load Shell as it starts. A per-user or portable setup can't add it, so there the first right-click still has to be on the desktop or a folder. (#12, found by fengyulll)
  • A right-click on the taskbar checks where you clicked once instead of twice, so its menu opens a little sooner.
  • modify(find='copy' menu='Tools') works when Tools is one of your menus with expanded=1. Before, the Windows item left its place and showed nowhere.
  • Hiding one of your menus no longer hides the items you moved out of it. For example, after moving Copy path out of File manage to the main menu, turning File manage off keeps Copy path in the main menu.
  • A later modify() rule without pos= no longer resets the place an earlier rule gave an item.
  • Register Server in File manage shows only for .dll and .ocx files. Before, it also showed for Word files (.docx), because find='.ocx' matches any extension that contains "ocx". Write find='."ocx"' to match one extension exactly. Copy file contents, Run with arguments, Extract to folder and Verify Checksum file had the same mistake and are fixed too. Thanks to Bits-Bytes-354 for the report.
  • A command that makes a folder with io.dir.create, or a file with io.file.create(..., true), should no longer make File Explorer crash and restart, along with the taskbar and desktop. It happened on the desktop, for example with File manage > New folder there, on some Windows 11 builds. Shell now selects and renames the new item from File Explorer's own window, and only when it was made in the folder the window is showing. A folder made somewhere else, like your own links folder, is just created. A new folder in the open folder now opens for renaming whether you give its name or its full path. Before, a full path only made the folder. Thanks to TiAmo-KO for the report and the careful analysis (#8).
  • System > Empty Recycle Bin empties the Recycle Bin again. Before, it ran a PowerShell command that could fail without telling you, so after you said Yes the files were still there. Now Shell empties the bin itself and shows Windows' progress window. If one drive can't be emptied, the other drives still are, and the reason goes to shell.log. If you press Cancel in Windows' progress window, the files that are left stay in the bin. If you changed My tools (imports/my-tools.nss) yourself, your copy is kept as it is and still has the old command: open Home in the app and press Use the new version for my-tools.nss, or change that item to use command.empty_recycle_bin. Thanks to zhonglixun for the report (#9).
  • Windows' own Empty Recycle Bin item shows again when you right-click the Recycle Bin with Remove disabled items turned on (Behavior page in the app). Windows gives Shell this item greyed out at first, and that switch removed it before Shell could check whether the bin has files in it. Thanks to zhonglixun for the report (#9).
  • Remove disabled items no longer hides other Windows items just because they were greyed out for a moment. Windows greys out some items while it works out whether they can be used, and enables them a little later. Shell now looks at each greyed-out item again when its menu opens and hides it only if it is still greyed out then. With the switch off, such an item now shows as usable once Windows has enabled it. In the first menu Shell looks almost straight away, so an item Windows takes longer to enable may still be hidden there; in submenus the check happens when you open them. Thanks to zhonglixun for the report (#9).
  • New theme.border.system setting. On Windows 11, a blur or acrylic menu with 4 px or 8 px corners is rounded by Windows, which adds its own shadow. Set border.system = false in theme and Shell rounds the corners itself, with no Windows shadow. It is on by default, so nothing changes unless you turn it off. The Settings app has it under Menu corners as Windows rounds small corners.
  • Control Panel opens again. With Shell installed it failed with "Server execution failed", because the separate copy of File Explorer that Control Panel runs in crashed. Thanks to nafisshariar04 for the report (#16).
  • Windows 11 shows Shell's menu again after the November 2026 update (KB5132061) on 24H2, 25H2 and 26H2, which brought in Windows' new right-click menu. Shell now turns that menu off as well, with no ViVeTool or other tweaks needed.
  • Menu map no longer fails with "Couldn't read the menu" when a shell extension prints its own text while Shell reads Windows' items. XnView's XnShell does this.
  • Menu items that a program draws itself, such as the image preview from XnView's shell extension, show again. Before, the menu kept room for them but the space stayed blank. Black parts of such an item no longer turn see-through either. Thanks to wmjordan for the report (#14).

Settings app

  • Menu map can move and reorder items. Pick a menu under Move to, a place under Place in this menu, or use the arrows on the item's row (Alt+Up and Alt+Down work too). This works for your own Shell items, such as Empty Recycle Bin in System, and for Windows and program items in the main menu. For a Windows or program item the place is saved as a pos= rule in imports/settings-app-map.nss, and Reset position takes it away. Windows items inside Windows' own submenus, such as Open with, can't be placed yet.
  • Place in this menu, Move to and the row arrows only offer places that are really in that menu, including items from your own files. Place in this menu leaves out items marked Hidden or moved to another menu, and lists a renamed item by its new name. Items that show only sometimes stay in the list, because they are in the menu some of the time; when one of them is missing, an item placed next to it goes to the bottom. The row arrows and Alt+Up/Alt+Down skip hidden items too, so each press moves the item past one you can see. Move to never offers the item itself or a menu inside it. Long names in these lists keep their end, so two similar names can be told apart. Thanks to kaser4 for asking.
  • Move to on the Menu map no longer lists menus that are hidden, or the menus inside them, such as Terminal when it is hidden, because an item moved into a hidden menu would vanish. Main menu is always listed and comes first, for Windows items and your own: it takes an item out of a submenu, or keeps one such as Create shortcut out of More options. An item that is already in a hidden menu can still be moved out.
  • The Menu map's File samples now include an application (.exe) and a shortcut (.lnk), which show Troubleshoot compatibility. Items a program adds only inside File Explorer, such as Scan with Microsoft Defender on some PCs, can be added by their title to hide, rename or move them.
  • The app is available in Arabic, reviewed and corrected by kaser4. Preferences > Language lists it as العربية, and Auto picks it when Windows is in Arabic.
  • Version numbers with a suffix, such as 2.3.0-beta.3, show in the right order in Arabic.
  • Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+A and Ctrl+Z work in the app's text boxes and the code editor with an Arabic, Russian or other non-Latin keyboard layout too. Thanks to kaser4 for the report.
  • The Menu map's side panel can change an item's icon. Pick an .ico, .png or .svg file or a program with Browse, or type a glyph such as image.mdl(\uE8C8). Remove icon takes it away. It works for your own items and for Windows items.
  • The System menu on the desktop shows real icons for Flush DNS, God Mode, Sleep, Sign out, Restart and Shut down, in place of the coloured squares.
  • The System menu's icons no longer depend on the Segoe MDL2 Assets font, so they show correctly on a PC where that font is missing (Restart Explorer, Empty Recycle Bin, Flush DNS, God Mode, Lock, Sleep, Sign out, Restart and Shut down).
  • Ctrl+S saves on every page again, whatever has focus. On Context Menus, Menu Builder and in the Menu map's Edit code it did nothing before.
  • Hiding, renaming, moving or changing the icon of an item that came with Shell (Terminal, Go To, File manage and the like) on the Menu map no longer changes that item's file. The change goes into the app's own imports/settings-app-map.nss instead, so the file stays as it came and updates can replace it while your change still applies. Before, every such change made the file count as "changed by you", and each update asked you to compare it or lose your changes. Your own files are still changed in place, as before. Thanks to kaser4 for the report.
  • If you used the Menu map in a 2.3.0 beta, the files it had changed are brought up to date on their own after the update: the app takes the new version and moves your hidden, renamed and moved items into imports/settings-app-map.nss. In shell.nss it also keeps the import lines you added or turned off. A snapshot is taken first. Only a file with other edits of yours is still listed on Home, and there "Use the new version" now keeps your hidden, renamed and moved items too. Thanks to kaser4.
  • If you go back to 2.2.2 or an older version after this one, remove the override(...) lines in imports/settings-app-map.nss first (or restore a snapshot from before the update). Those versions don't know these lines and stop loading the config.
  • Snapshots on the Backups page (and the one taken before an update) now keep all your files in the config folder, such as your own icons in imports\images and your own .nss files, not only the .nss files. Restoring one puts them back. The Backups page lists changed, added and removed images too, without trying to show their lines. Very big files (over 16 MB, or past 128 MB in all) are left out. Thanks to kaser4 for asking.
  • The Snippets page's preview looks like the real menu now: full size on your wallpaper, with the snippet's submenu open and a label saying what to right-click. The snippet's items have a thin outline and the items already in your menu are faded, instead of the blue marks. While it loads you see the outline of a menu, and a snippet that only changes other items says so.
  • Menu map has a This PC tab, for the menu you get when you right-click the This PC icon. It lists Windows' items there (Manage, Map network drive, Properties) and your own items that apply to This PC. Thanks to kaser4 for asking.
  • Each Menu map tab now shows the menu as it really opens there. Shell works out each item's conditions (such as "only on This PC" or "only for .txt files") for that tab, so an item that doesn't show there is no longer listed with the ones that do. Your items and Windows' items are one list, in the order the menu shows them. Thanks to kaser4 for asking.
  • The Menu map list has three parts: In this menu, Hidden (items you turned off, so you can turn them back on) and Not in this menu. An item moved into a submenu, such as Pin to Quick access into Pin/Unpin, is listed inside that submenu. A submenu with nothing in it on that tab counts as not in the menu, as in the real one.
  • Menus on the Taskbar tab whose title is set when the menu opens are named after what's in them ("Menu with: Task Manager, Taskbar Settings..."), and the Rename box shows the title they get now.

Snippets

  • New on the app's Snippets page: Play in MPC-BE, from RubicBG. It adds Open in MPC to video and music files, and to folders that have them. Hold Shift to add them to the MPC-BE playlist instead. It needs MPC-BE from the Microsoft Store.
  • Also new on the Snippets page: Quick tools. It copies details about your PC (screen, memory, processors, battery, language), keeps a folder bookmark you can open from any right-click, and copies a path with forward slashes, in quotes or as a file URL.
  • Three more of RubicBG's snippets load now, but they change Windows settings outside Shell (the registry, some as administrator, or file permissions), so they stay off the Snippets page. The rest of his collection loads too, now that run() takes six values and path.dir.boxl is there.
  • The Snippets page in the docs links to his whole collection, and all of it loads now.
  • Every snippet on the Snippets page now has its name and description in Arabic and Spanish too, not only in Chinese.

Docs

  • New and fixed functions are described in the Functions pages.

Thanks
Thank you to RubicBG for ReShell and his snippets, to kaser4 for the Arabic translation and many requests and reports, to zhonglixun and TiAmo-KO for their reports and analysis, and to Bits-Bytes-354 for a report.

Install

Download For Notes
setup-x64.msi Windows x64 Per-machine install to C:\Program Files\Nilesoft Shell. Needs administrator rights once. Includes the app.
setup-arm64.msi Windows on ARM As above; the app is the x64 build and runs under emulation.
setup-x86.msi 32-bit Windows No app; the Start menu entry opens shell.exe.
NilesoftShellPro-2.3.0-x64-portable.zip Windows x64, one user No administrator rights. Extract to e.g. %LOCALAPPDATA%\Programs\NilesoftShellPro, then run NilesoftShellPro.exe, or shell.exe -register -user -treat and shell.exe -restart. See PORTABLE.txt in the zip.

The MSI upgrades an earlier Nilesoft Shell Pro installation in place (same folder, your shell.nss is kept) and appears as "Nilesoft Shell Pro" in Installed apps. It does not reliably replace the original Nilesoft Shell: uninstall that first (see the warning above).

Verify downloads against SHA256SUMS.txt:

Get-FileHash .\setup-x64.msi -Algorithm SHA256

Unsigned binaries

The MSIs, shell.exe, shell.dll and NilesoftShellPro.exe are not code-signed. Windows SmartScreen may show "Windows protected your PC" when you run the installer or NilesoftShellPro.exe; choose More info, then Run anyway, if you trust this release. Check the SHA-256 hash first.

Report problems at https://github.com/Abdullah-Masood-05/Shell/issues and include the output of shell.exe -status. Questions and ideas are welcome in Discussions.

Credits

Nilesoft Shell is created by Moudey and Nilesoft and released under the MIT License. Many fixes were ported, with credit in each commit, from the opj161, TCNOco, arvaidasre, iMAboud and iGerman00 forks and from pull requests to Nilesoft Shell by YESNLars, haoze-evolluling, xiaobsh, denismattos, v4806, jtabox, loliri and MissinLinkk05551.