Skip to content
Add or Remove Windows Batch File in Context Menu in Windows 11

Add or Remove Windows Batch File in Context Menu in Windows 11

Written By Alok Kumar Mishra
Last Updated January 15, 2025
Posted In Windows 11
SHARE

Let’s learn how to add or remove Windows Batch File in Context Menu in Windows 11. A batch file is a script that contains a series of commands that can be executed by the Windows command prompt (cmd.exe). A batch file is a text file created in Notepad or other text editor.

A batch file bundles or packages a set of commands into a single file in serial order. Without a batch file these commands would have to be presented one at a time to the system from a keyboard. The new context menu allows users to quickly create a new time in the current location.

The default new context menu items include to create a new folder, shortcut, bitmap image, text document, zipped folder and library. You can also add the Windows Batch File to the new context menu to make it easier for users to create BAT file when required.

Using Registry file you can add or remove Windows Batch File in the Context menu. The step by step process is described in detail in the post. Batch files save time by eliminating the need to re-type commands.

Patch My PC
Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 1
Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 1

Are there any Group Policy and Intune Policy Settings or any other settigns to Add or Remove Windows Batch File in Context Menu?

The answer is no. We cannot find any Group Policy and Intune Policy to find Ways to Add or Remove Windows Batch File in Context Menu in Windows 11 . If you have anything, let us know in the Comments.

What is Batch File?

A batch file is a text file that contains a series of commands that are executed in sequence when the file is run. Batch files are used to automate repetitive tasks on a computer.

How Batch File Works?

A command-line interpreter, such as the Command Prompt in Windows, reads the batch file. The interpreter executes the commands in the order they appear in the file.

Use of Batch File

Batch files save time by eliminating the need to re-type commands. Batch files can simplify complex processes. Batch files can be used to load programs, run multiple processes, or perform repetitive actions.

NOTE: Batch files can be dangerous if they are infected or malicious. To protect yourself, make sure you have an antivirus program installed and running.

Add or Remove Windows Batch File in Context Menu in Windows 11

There are some common commands are available in batch file which helps to process required task. Batch file helps to Create a file, Delete a file, Rename a File, Load programs, Run Multiple processes and perform repetitive action. Some commands are shown in the table below:

CommandsUsed for
DIRLists all directories, sub-directories, and files in the current working directory
CDChanges the current workign directory
VERDisplays the user’s Windows version
CLSClears the command prompt screen
ECHOTurns the prompt on or off
@Hides which command is running
HELPLists all availalbe commands in the cmd

You can also deploy Batch File using Intune Step by Step Guide – Click Here.

Registry File

Using the registry editor, you can add or remove Windows Batch File in the context menu in Windows 11. This procedure is done using the Registry Editor. Let’s discuss the step-by-step guidelines for it.

Now, open Run Window, and press Windows Key + R from the keyboard simultaneously. This is the keyboard shortcut to open the run window. Now, type regedit and press Enter.

Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 2
Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 2

NOTE! Take Backup—If any mistake occurs in the Registry Editor, it may affect the system. It is advisable to take a backup of the Registry before proceeding. To back up, go to File in the top left corner of the Registry Editor. Click on it, then select Export and save the backup.

  • Go to File.
  • Right-click on HKEY_CLASSES_ROOT
  • Click on Export.
  • Please save it.
Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 3
Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 3

Add Windows Batch File

Use the .reg file to add Windows Batch File in the context menu in Windows 11. To create a .reg file, open NotePad, type the following code, and name it Add-BAT-New-Context-Menu. Then, save it on the desktop using the .reg extension, which enables the cloud content search.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.bat\ShellNew]
"NullFile"=""
Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 4

Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 4

When the file is saved at your selected location, double-click on it. The User Account Control Window will open; click Yes to continue. Then, the Registry Editor Waring window will open.

Adding information can unintentionally change or delete values and cause components to stop working correctly. If you do not trust the source of this information in the path you created, do not add it to the registry; otherwise, click Yes to continue.

The following window shows that the key and value you added have been successfully added to the registry editor. Now click on OK and restart your PC to add the applicable test.

Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 5
Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 5

Restart your device after completion of the above process and now you can open any file manager click on the New then you can see the Windows Batch File option is there. And you can right click on the desktop, click on New then you can see the Windows Batch File option as shown below.

Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 6
Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 6

Remove Windows Batch File

Use the .reg file to remove Windows Batch File in the context menu in Windows 11. To create a .reg file, open NotePad, type the following code, and name it Remove-BAT-New-Context-Menu. Then, save it on the desktop using the .reg extension, which enables the cloud content search.

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.bat\ShellNew]
Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 7
Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 7

When the file is saved at your selected location, double-click on it. The User Account Control Window will open; click Yes to continue. Then, the Registry Editor Waring window will open.

Adding information can unintentionally change or delete values and cause components to stop working correctly. If you do not trust the source of this information in the path you created, do not add it to the registry; otherwise, click Yes to continue.

The following window shows that the key and value you added have been successfully added to the registry editor. Now click on OK and restart your PC to add the applicable test.

Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 8
Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 8

Restart your device after completion of the above process and now you can open any file manager click on the New then you cannot see the Windows Batch File option there. And you can right click on the desktop, click on New then you cannot see the Windows Batch File option as shown below.

Add or Remove Windows Batch File in Context Menu in Windows 11 - Fig. 9
Add or Remove Windows Batch File in Context Menu in Windows 11 – Fig. 9

I hope the information on Add or Remove Windows Batch File in Context Menu in Windows 11 is helpful. Please follow us on the HTMD Community and visit our website, HTMD Forum, if you like our content. Suggest improvements, if any, and we would love to know which topic you want us to explore next.

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the latest step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, Join the WhatsApp Community to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Alok graduated with a Master of Computer Applications (MCA) degree. He loves writing on Windows 11 and related technologies. He likes to share his knowledge, quick tips, and tricks with Windows 11 or Windows 10 with the community.

Written by

Alok is a Master of Computer Applications (MCA) graduate. He loves writing on Windows 11 and related technologies. He likes to share his knowledge, quick tips, and tricks.

Discussion

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Security

Microsoft Fixes 570 Security Vulnerabilities and 3 Zero-Day Vulnerabilities in July 2026 Patch Tuesday

Key Takeaways Microsoft Fixes 570 Security Vulnerabilities and 3 Zero-Day Vulnerabilities in July 2026 Patch Tuesday! Microsoft fixed 3 zero-day vulnerabilities as part of the July 2026 Patch Tuesday updates. Two of them, CVE-2026-56164 (Microsoft SharePoint Server Elevation of Privilege) and CVE-2026-56155 (Active Directory Federation Services Elevation of Privilege), were actively exploited before the security […]

AC Anoop C Nair 29 min read
Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Windows 11

Boost Productivity with Zoom Workplace on Windows 11 | Setup Guide for Meetings Chat Calls and Collaboration

Key Takeaways Hey, let’s learn about Boost Productivity with Zoom Workplace on Windows 11 | Setup Guide for Meetings Chat Calls and Collaboration. Zoom workplace is an AI-powered collaboration app used for online meetings, team collaboration, and video calls. This application helps to conduct meetings Including chat and messaging, screen sharing and Calendar Integration. Boost […]

AC Anoop C Nair 35 min read
Windows 11

13 Windows AI Features to Turn Off for Better Privacy

Key takeaways Hey, let’s discuss about 13 Windows AI features to turn off for better privacy. AI is widely used in modern systems such as Windows 11 to automate tasks, improve productivity, and enhance user experience. However, AI also has several disadvantages. It may raise privacy concerns because personal data can be collected and analysed […]

AC Anoop C Nair 15 min read