---
title: Custom Windows 11 - Contextual Menu Item
date: 2025-01-29T13:29:56Z
modified: 2025-01-29T13:29:58Z
permalink: "https://techarticles.co.uk/custom-windows-11-contextual-menu-item/"
type: post
status: publish
excerpt: ""
wpid: 4423
categories:
  - Coding
  - Windows
  - Wordpress
timestamp: 2025-01-29T13:29:58Z
tags:
  - Coding
  - Windows
  - Wordpress
---

In my video explaining Ninja-updater. I show on screen my custom menu item on right click on a zip file called “Send to Personal WP Repo.”

In this post, I am going to show you how I achieved this and also some of the workings behind it, so firstly this is all done locally on my machine I have a folder stored in my case on a section partition of my main drive in a folder called repo.

I then have a BAT script, which can be seen below, which copies the zip file selected when it runs from one location to another so its within the correct folder of that repo directory

So a BAT file is what this contextual menu runs; below is a picture of the contextual menu what you can’t see in the screenshot is the separator above and below as the highlight box covers them

![Context menu showing options like "Add to Favourites" and "Sent to Personal WP Repo."](https://techarticles.co.uk/wp-content/uploads/2025/01/repo-contextual-menu.png)

To get this to work, I have created a registry addition to my Windows registry and downloaded the following [icon ](https://www.shareicon.net/upload-symbol-books-interface-and-web-arrow-interface-uploading-book-685317)into my local pathed directory, and the registry edit for that is below

```
<span class="line"><span style="color: #79B8FF">Windows</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">Registry</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">Editor</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">Version</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">5.00</span></span>
<span class="line"></span>
<span class="line"><span style="color: #E1E4E8">[</span><span style="color: #79B8FF">HKEY_CLASSES_ROOT</span><span style="color: #E1E4E8">\</span><span style="color: #F97583">*</span><span style="color: #E1E4E8">\</span><span style="color: #79B8FF">shell</span><span style="color: #E1E4E8">\</span><span style="color: #79B8FF">Sent</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">to</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">Personal</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">WP</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">Repo</span><span style="color: #E1E4E8">]</span></span>
<span class="line"><span style="color: #9ECBFF">"Icon"</span><span style="color: #F97583">=</span><span style="color: #9ECBFF">"</span><span style="color: #79B8FF">\"</span><span style="color: #9ECBFF">C:</span><span style="color: #79B8FF">\\</span><span style="color: #9ECBFF">0. PATHED Items</span><span style="color: #79B8FF">\\</span><span style="color: #9ECBFF">repo-push.ico</span><span style="color: #79B8FF">\"</span><span style="color: #9ECBFF">"</span></span>
<span class="line"><span style="color: #9ECBFF">"SeparatorBefore"</span><span style="color: #F97583">=</span><span style="color: #9ECBFF">""</span></span>
<span class="line"><span style="color: #9ECBFF">"SeparatorAfter"</span><span style="color: #F97583">=</span><span style="color: #9ECBFF">""</span></span>
<span class="line"></span>
<span class="line"><span style="color: #E1E4E8">[</span><span style="color: #79B8FF">HKEY_CLASSES_ROOT</span><span style="color: #E1E4E8">\</span><span style="color: #F97583">*</span><span style="color: #E1E4E8">\</span><span style="color: #79B8FF">shell</span><span style="color: #E1E4E8">\</span><span style="color: #79B8FF">Sent</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">to</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">Personal</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">WP</span><span style="color: #E1E4E8"> </span><span style="color: #79B8FF">Repo</span><span style="color: #E1E4E8">\</span><span style="color: #79B8FF">command</span><span style="color: #E1E4E8">]</span></span>
<span class="line"><span style="color: #F97583">@=</span><span style="color: #9ECBFF">"</span><span style="color: #79B8FF">\"</span><span style="color: #9ECBFF">C:</span><span style="color: #79B8FF">\\</span><span style="color: #9ECBFF">0. PATHED Items</span><span style="color: #79B8FF">\\</span><span style="color: #9ECBFF">sent-to-wp-repo.bat</span><span style="color: #79B8FF">\"</span><span style="color: #9ECBFF"> </span><span style="color: #79B8FF">\"</span><span style="color: #9ECBFF">%1</span><span style="color: #79B8FF">\"</span><span style="color: #9ECBFF">"</span></span>
<span class="line"></span>
<span class="line"></span>
```PHP

Once the transfer is complete, a different process takes over and uploads it to my personal repo online, and I will cover that in another article.