Windows 10: Add Batch File to New Context Menu in Windows 10  

Page 1 of 2 12 LastLast
    Add Batch File to New Context Menu in Windows 10

    Add Batch File to New Context Menu in Windows 10

    How to Add Windows Batch File to New Context Menu in Windows 10
    Published by Category: Customization
    20 Jun 2018
    Designer Media Ltd

    Published by


    Brink's Avatar
    Administrator

    Posts: 32,326

    Show Printable Version 


    How to Add Windows Batch File to New Context Menu in Windows 10


    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.

    The New context menu allows users to quickly create new files, folders, and shortcuts. You can right click or press and hold on your desktop or in any folder window, and click/tap on New to open the New context menu.

    By default, Windows Batch File is not in the New click context menu. Adding "Windows Batch File" to the New context menu will make it easy for users to be able to quickly create a new batch file on demand ready to be edited afterwards.

    This tutorial will show you how to add or remove Windows Batch File to the New context menu for all users in Windows 10.

    You must be signed in as an administrator to be able to add or remove "Windows Batch File" from the New context menu.


    EXAMPLE: Windows Batch File added to New context menu
    Name:  BAT_in_New_context_menu.png
Views: 19001
Size:  207.8 KB



    Here's How:

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


     2. To Add "Windows Batch File" to New Context Menu

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

    Add_BAT_to_New_context_menu.reg

    download


     3. To Remove "Windows Batch File" from New Context Menu

    This is the default setting.

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

    Remove_BAT_from_New_context_menu.reg

    download

    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. Sometimes it may take a moment before this New context menu item is actually added or removed. If not, then restart the computer to apply.

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


    That's it,
    Shawn


  1. tcebob's Avatar
    Posts : 387
    Windows 10 pro 1803/17134.285
       04 Dec 2015 #1

    Shawn, I installed the "Batch File" as you recommended and it works fine. I was hoping to learn from it some method for removing dead options from the context menu as mine is getting longer. Apparently, uninstalling a program (such as MS Office) does not alter the New menu. I looked up some active entries on the menu (such as PlanMaker Document .pmd) and they do not have a similar structure. Can you suggest a method for removing the deadwood?
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 32,326
    64-bit Windows 10 Pro build 18242
    Thread Starter
       04 Dec 2015 #2

    Hello Bob, :)

    The two free programs below are good to use to edit the context menu with.

    ShellMenuView - Disable/enable context menu items of Explorer

    http://www.nirsoft.net/utils/shexview.html
      My ComputersSystem Spec

  3. tcebob's Avatar
    Posts : 387
    Windows 10 pro 1803/17134.285
       04 Dec 2015 #3

    Thanks, Brink. I should have thought of Shexview. I'll check out ShellMenuView.
      My ComputerSystem Spec

  4. Brink's Avatar
    Posts : 32,326
    64-bit Windows 10 Pro build 18242
    Thread Starter
       04 Dec 2015 #4

    You're welcome. I hope it'll do the trick for you.
      My ComputersSystem Spec

  5.    20 Jun 2018 #5

    Shawn,
    I followed your instructions to add the batch file to my menu but it didn't work. I even rebooted my computer and still don't see it. Any additional info or ideas you can offer to help get this working is appreciated. Please let me know if you have any questions or need additional information.

    OS: MS Windows 10 Pro
    Version: 10.0.17134 Build 17134

    Thank you.
      My ComputerSystem Spec

  6. Brink's Avatar
    Posts : 32,326
    64-bit Windows 10 Pro build 18242
    Thread Starter
       20 Jun 2018 #6

    Hello technomag, and welcome to Ten Forums.

    Just to confirm, were you signed in to an administrator account when you merged the .reg file?
      My ComputersSystem Spec

  7.    20 Jun 2018 #7

    yes sir.
      My ComputerSystem Spec

  8. Brink's Avatar
    Posts : 32,326
    64-bit Windows 10 Pro build 18242
    Thread Starter
       20 Jun 2018 #8

    I just tested on my W10 v1803 system to see if anything may have changed, but it still works for me.

    Double check to verify if the registry key and string value below is in your registry. This is what the .reg file adds.

    Code:
    [HKEY_CLASSES_ROOT\.bat\ShellNew]
    "NullFile"=""

    If the registry key is there, then let's see a screenshot of your New context menu to see if anything stands out.
      My ComputersSystem Spec

  9.    21 Jun 2018 #9

    The entry you posted does not exist in my registry file. Click image for larger version. 

Name:	Registry.jpg 
Views:	51 
Size:	41.8 KB 
ID:	193071 but I know that I merged your file with mine.
      My ComputerSystem Spec


 
Page 1 of 2 12 LastLast

Tutorial Categories

Add Batch File to New Context Menu in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Xbox Windows Phone


Related Threads
.Reg files are registration entries that are text-based human-readable files for exporting and importing portions of the Registry. The New context menu allows users to quickly create new files, folders, and shortcuts. You can right click or press...
I've been trying to figure this out for a while now and I can't. I've looked at tons of small tips online to get this working but it doesn't work at all. I have a batch file which causes various programs to start when opened. However, one of them...
A .vbs file is a VBScript (Visual Basic Script) file written in the VBScript scripting language that can be executed within Windows or Internet Explorer via the Windows-based script host (Wscript.exe), and may also use the .vb file extension. The...
System Info Batch File in Chillout Room
Hi Everyone, I thought it may be interesting to get input from others regarding this batch file. I was hoping for suggestions about: Information to add to the report. Ways of making the current code more efficient. Etc... A while back i...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:54.
Find Us