How to run bat File from Right Click Menu in specific folder ?


  1. Posts : 317
    Windows 10 Home
       #1

    How do I run a bat File from Right Click Menu in specific folder ?


    Is it possible to run a .bat or .exe from the Right-Click Context menu as if it was actually running from a specific folder that I call up the context menu from ?

    Example :
    The .bat works with files in the folder its placed in with .
    The way its written is it has to be in that folder. this was done for convenience.

    I want to streamline this process by calling up this bat from the right click menu ; in any folder i click into :
    Have it act as if it was in that folder .

    If this is possible how would I do this ? Thanks .
    Last edited by OtherWay1982; 26 Oct 2019 at 08:52.
      My Computer


  2. Posts : 43,024
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Presumably you would need to pass the path as a parameter to the bat file. Pretty much anything can be added to the context menu- there are several utilities around for that.
      My Computers


  3. Posts : 317
    Windows 10 Home
    Thread Starter
       #3

    dalchina said:
    Presumably you would need to pass the path as a parameter to the bat file. Pretty much anything can be added to the context menu- there are several utilities around for that.
    Yes I saw one of your posts where you suggested ContextEdit . Im trying that. But im unsure if that is geared towards my problem.


    Also trying FileMenu Tools , software.
    Last edited by OtherWay1982; 26 Oct 2019 at 04:32.
      My Computer


  4. Posts : 43,024
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #4

    That was in a different context, for a different purpose.

    Try e.g. Easy Context Menu
    How to run bat File from Right Click Menu in specific folder ?-1.png

    or perhaps Right click context menu adder (may give an initial error message- ignore that). Free.
      My Computers


  5. Posts : 317
    Windows 10 Home
    Thread Starter
       #5

    Thanks dalchina, will also try that.

    - - - Updated - - -



    I didnt yet try other software for this . yet. I will also try the software.

    I did it manually first and this did work . This path seemed to work
    How to run bat File from Right Click Menu in specific folder ?-path-worked.png

    It appeared in right click. At first it didnt work for a unknown reason. I relocated the file and its new path, then tried again. And that seemed to have worked in reg edit .
    Last edited by OtherWay1982; 27 Oct 2019 at 10:01.
      My Computer


  6. Posts : 317
    Windows 10 Home
    Thread Starter
       #6

    Easy Context Menu ; seems to be the easy way to go. Worked well.
      My Computer


  7. Posts : 43,024
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #7

      My Computers


 

  Related Discussions
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 02:10.
Find Us




Windows 10 Forums