Add NirSoft Advanced Run to Right Click Context Menu to open file

Page 1 of 2 12 LastLast

  1. Posts : 522
    Win7 Pro X64, Win10 Pro x640
       #1

    Add NirSoft Advanced Run to Right Click Context Menu to open file


    How would I create a registry entry to add NirSoft Advanced Run to, when right click on any file, to execute? Is the reg file text below correct? Thanks!

    https://www.nirsoft.net/utils/advanced_run.html

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\*\shell\AdvancedRun]
    @"MUIVERB"="Advanced Run"

    [HKEY_CLASSES_ROOT\*\shell\Advanced Run\command]
    @=”C:\\Program Files\\Advanced Run\\AdvancedRun.exe” %1
      My Computer


  2. Posts : 16,963
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #2

    I don't know about the rest of it but your command does not match what NirSoft states on the webpage you linked to. I think you will need to replace your
    Code:
    %1
    entry with
    Code:
    /EXEFilename "%1"

    There are TenForum threads about customising the context menu but you might find it easier to test out the intended code by creating a shortcut in SendTo - I think this would need to be
    Code:
    ...../AdvancedRun.exe /EXEFilename "%1"
    When you have the SendTo shortcut working you can then focus on how to get it into the context menu itself.

    Denis
      My Computer


  3. Posts : 522
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #3

    @Brink

    1. Send-to shortcut. So drop a shortcut to Advanced Run to C:\Users\(Name)\AppData\Roaming\Microsoft\Windows\SendTo directory, correct? Do I need to add any parameters or arguments to the shortcut?

    2. How about this modification to the AdvancedRun registry modification? I modified the registry file for *.exe files but could also do the same for VBS, BAT, etc. files and added AdvancedRun to the Windows directory.

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\EXEFile\shell\AdvancedRun]
    "MUIVERB"="Advanced Run"
    "Icon"="%windir%\AdvancedRun.exe"

    [HKEY_CLASSES_ROOT\EXEFile\shell\Advanced Run\command]
    @=”%windir%\\Advanced Run.exe EXEFilename %1"
    Last edited by bamajon1974; 10 Jul 2019 at 16:05.
      My Computer


  4. Posts : 16,963
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #4

    1.1 You have the correct path for SendTo.

    1.2 The parameters I think you need are as shown in my previous post. I have never used this particular NirSoft utility and am just working directly from the explanations given on that NirSoft page you linked to.
    [just for completeness, let's assume that you have put the NirSoft utility in D:\Tools\NirSoft\AdvancedRun\].
    Code:
    D:\Tools\NirSoft\AdvancedRun\AdvancedRun.exe /EXEFilename "%1"

    2 I do not know anything about the Registry modification you want.
    - If you test it out in SendTo so you can see the NirSoft syntax works you can then search the forum tutorials for context menu. There are lots of them but I do not know which one would serve as the best example for your needs.
    - I once intended to learn about changing the context menu but used SendTo to test my syntax and just carried on using it for everything. So I never learnt anything.

    Denis
      My Computer


  5. Posts : 522
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #5

    @Brink , @Try3 - can you confirm below please?

    Ok I think I figured it out. I copied Advanced Run to the directory C:\Program Files\Advanced Run\AdvancedRun.exe

    1. To run any exe file through Advanced Run via the send-to menu, I created a shortcut for Advanced Run to the send-to menu. Target for the shortcut is: "C:\Program Files\Advanced Run\AdvancedRun.exe" /EXEFilename
    When I right click on an exe file, go to send-to menu, click on Advanced Run, the exe file and path is added first line in Advanced Run, Program to Run.

    2. Now to run any exe file through Advanced Run via the right-click context menu in Explorer, I edited the registry accordingly and exported the reg. file. Like the send-to menu, right clicking any exe file passes that file and path to Advanced Run.

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\exefile\shell\AdvancedRun]
    "Icon"="C:\\Program Files\\Advanced Run\\AdvancedRun.exe"
    @=""
    "MUIVerb"="Advanced Run"

    [HKEY_CLASSES_ROOT\exefile\shell\AdvancedRun\command]
    @=""C:\\Program Files\\Advanced Run\\AdvancedRun.exe" /EXEFilename "%1""
      My Computer


  6. Posts : 16,963
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #6

    Para 1 - Are you saying that the SendTo shortcut does what you want it to? Without the "%1" ?

    Denis
      My Computer


  7. Posts : 522
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #7

    @Try3

    Correct, it seems the exe file and path is passed to the run line of Advanced Run (and the exe file successfully launches) when the target ends in /EXEFilename, but not /EXEFilename %1, or /EXEFilename "%1" Otherwise, just %1 appears in the run line of Advanced Run.

    - - - Updated - - -
    @Try3 I don't know why leaving out the "%1" parameter works. Do you?
      My Computer


  8. Posts : 16,963
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #8

    Well, SendTo automatically includes a sort of hidden %1 but not all applications respond to it in the way you'd expect. I have a mixture in my SendTo and normally have to just try it and see what happens. That's why I asked.

    In the fullness of time, I intend to study AdvancedRun properly to find out how I could call up customised settings for any given application and then run it automatically without needing the AdvancedRun UI window appearing.
    - The settings for one of them would not be the same as those for another so AdvancedRun's Run command & config mechanism seems to be the answer.
    - It seems to me that, if successful, I could use AdvancedRun to set specific window sizes & positions for specific shortcuts [to applications] so that a particular job could be laid out well instead of having to do it manually every time. For example, when I am doing one fairly regular job I would like to use
    - - one particular File explorer shortcut to open a given folder and to fill up the right-hand third of the screen
    - - another particular File explorer shortcut to open another given folder and to fill up the left-hand third of the screen
    - - yet another particular File explorer shortcut to open yet another given folder and to fill up the middle third of the screen

    But this is not a high priority so I don't know when I'd get around to it.

    Denis
      My Computer


  9. Posts : 522
    Win7 Pro X64, Win10 Pro x640
    Thread Starter
       #9

    I just tested on another computer and can confirm that the "%1" parameter is not needed in SendTo shortcut target line. Must be one of those applications that doesn't need the parameter then.

    So you want to customize the AdvancedRun cfg file to fully populate the options menu to run specific parameters, start directory, priority, windows status, compatibility, resolution, etc. on a per application basis automatically, without any entry into the window, correct?
      My Computer


  10. Posts : 16,963
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #10

    bamajon1974 said:
    So you want to customize the AdvancedRun cfg file to fully populate the options menu to run specific parameters, start directory, priority, windows status, compatibility, resolution, etc. on a per application basis automatically, without any entry into the window, correct?
    Sort of.
    - I just want to bypass the AdvancedRun window so the application just starts under its control.
    - The only use I currently envisage is setting window positions & sizes.
    - The AdvancedRun /Run {Config File} switch seems suitable for such a use.

    Denis
      My Computer


 

  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 12:06.
Find Us




Windows 10 Forums