How to add "Jump to D:\data\" to Explorer context menu?


  1. Posts : 128
    Win10
       #1

    How to add "Jump to D:\data\" to Explorer context menu?


    I have already added some other customized Windows Explorer context menu entries.
    Similarly I want to add a new context menu "Jump to D:\data" which - when clicked - let me jump to the directory D:\data inside the same Windows Explorer window (not in new window).

    Therefore I added the following keys (via *.reg file) into Registry:

    [HKEY_CLASSES_ROOT\*\shell\Jump]
    @="Jump to D:\\data"
    "Position"="bottom"
    [HKEY_CLASSES_ROOT\*\shell\Jump\command]
    @="cmd /c cd /D "D:\\data""


    The context menu entry appears but no jump is performed when clicked.

    Whats wrong?
      My Computer


  2. Posts : 1,728
    Windows 10 Pro x64 22H2
       #2

    Does it work if you change your last command to:
    Code:
    @="explorer.exe d:\\data"
    Last edited by zebal; 13 Jun 2023 at 07:14. Reason: forgot backslash in code
      My Computer


  3. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    I was going to suggest
    Code:
    @="cmd /c cd /D "explorer.exe D:\\data""


    Denis
      My Computer


  4. Posts : 128
    Win10
    Thread Starter
       #4

    Your suggestions work only partially:

    Both commands open a NEW explorer window (and jump to the directory).
    As said before I want to jump to the target directory INSIDE the current window

    Any other suggestions?
      My Computer


  5. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #5

    Not really but you could try adding the command line switch /select
    Code:
    @="cmd /c cd /D "explorer.exe D:\\data" /select"
    I have not used explorer command line switches for ten years or more.
    The Windows Explorer Command Line

    Best of luck,
    Denis
      My Computer


  6. Posts : 1,728
    Windows 10 Pro x64 22H2
       #6

    @Try3 That's very likely the best idea except I think he should use /idlist,:handlerocess option to select the correct explorer instance if there are multiple running.

    How the handle might be obtained within registry is a mystery though.
    Perhaps a complex multiline command is needed.
      My Computer


  7. Posts : 17,049
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #7

    My recall of explorer command line switches is quite vague because the last time I used them a lot was with WinMe or, possibly, with WinXP.
    The /select switch operated in the same explorer window [at that time] to just change the selected folder path without opening a new window. But I imagine that I was just running it from a shortcut within the existing explorer window.
    I don't think I ever used the /idlist switch even then.


    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 09:07.
Find Us




Windows 10 Forums