Apps Add or Remove Open with Context Menu to BAT files in Windows 11


  • Staff
Open_with_banner.png

A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file.

BAT files do not include Open with in their context menu by default in Windows.

If you like, you can add Open with to the context menu of .bat files that allows you to choose an app to open the BAT file with just once.

This tutorial will show you how to add or remove Open with to the context menu of BAT files for all users in Windows 10 and Windows 11.


You must be signed in as an administrator to add or remove the "Open with" context menu for BAT files.



EXAMPLE: "Open with" context menu for BAT files

You will need to click/tap on Show more options first by default, then click/tap on Open with.



Show_more_options.png
BAT_Open_with.png



Here's How:

1 Do step 2 (add) or step 3 (remove) below for what you would like to do.

2 Add "Open with" context menu to BAT files for All Users

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Add_Open_with_to_BAT_context_menu_for_all_users.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\batfile\shell\Open with\command]
@="{09799AFB-AD67-11d1-ABCD-00C04FC30936}"

3 Remove "Open with" context menu from BAT files for All Users

A) Click/tap on the Download button below to download the file below, and go to step 4 below.

Remove_Open_with_from_BAT_context_menu_for_all_users.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\batfile\shell\Open With]

4 Save the .reg file to your desktop.

5 Double click/tap on the downloaded .reg file to merge it.

6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

7 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

  • Open_with.png
    Open_with.png
    1.9 KB · Views: 14
  • Add_Open_with_to_BAT_context_menu_for_all_users.reg
    626 bytes · Views: 40
  • Remove_Open_with_from_BAT_context_menu_for_all_users.reg
    524 bytes · Views: 37
Last edited:

Latest Support Threads

Top Bottom