Having the letter 'W' open 'New' submenu after customization?  


  1. Posts : 374
    Windows 10-64 bit (version 1909 build 18363.628)
       #1

    Having the letter 'W' open 'New' submenu after customization?


    I recently added the option of "open command window here" to my right click menu in Windows 10.
    My windows version is 1909 ,build is 18363.535.

    Before that, after right clicking, on my keyboard, I used to type 'w', then 'f' to create a new folder. This habit I've developed over a long course of time and it's so snappy.

    Unfortunately, now when I press 'w' as a reflex action after right click to create a new folder, "open command window here" gets highlighted.

    Can I disable the option of the letter 'w' not highlighting "open command window here" ?

    Having the letter 'W' open 'New' submenu after customization?-customization.png
      My Computer


  2. Posts : 1,189
    W10-Pro 22H2
       #2

    I just tried that out, but by default the action keys were not underlined, so it was anyone's gess what would happen. So I enabled view of the underlines (settings>Ease of access>keyboard>change how KB...) and this is what I see:
    Having the letter 'W' open 'New' submenu after customization?-rt-click-explorer.png
    In my case, my own 'command window here' is called 'prompt', so its action letter is p. Hitting 'w' gets me Wiztree, but another w goes to 'new'. So in your case i would suggest trying to rename your command to avoid the 'w'. Whether I will ever get to learn to use keys like that is another thing. I have no idea if it is possible to change the order in which options are selected (note that some have no underlined character, eg 7zip, although in that case 7 does start to activate it - interesting...).
      My Computer


  3. Posts : 374
    Windows 10-64 bit (version 1909 build 18363.628)
    Thread Starter
       #3

    mngerhold said:
    So in your case i would suggest trying to rename your command to avoid the 'w'. Whether I will ever get to learn to use keys like that is another thing. I have no idea if it is possible to change the order in which options are selected (note that some have no underlined character, eg 7zip, although in that case 7 does start to activate it - interesting...).
    Interesting. How do I rename my command?

    Another thing. Your right click menu says admin cmd, while mine says the default "open command window here". You've done customization. How did you do that?
      My Computer


  4. Posts : 1,189
    W10-Pro 22H2
       #4

    The 'admin' command was by Shawn Brink on this forum: here and I guess that's what you used? It seems I just tweaked the label on the line immediately following the key to something snappier!

    My other context menu items were created via vbs - in case they are of any use, I shall attempt to embed it here:
    Code:
    '1/9/05 MNG script to create context menu options - uncomment 'Regdelete' lines to remove
    '10/10/05 Write to HKCU for XP
    '6/10/14  Test in Windows 10 - cmd command needs cd command to switch folders, can only switch drive if clicked in right pane
    '9/10/14 x_from_here works once right syntax used
    '4/7/15 revise command string to match Window tweaker value
    '19/7/18: Now on W10 as std, prompt seems to work OK, x-from-here shows full folder tree - not needed!
    '9/8/18 Add rename from XP (program folder name the same!), had to add %1 to open current folder
    
    ' ********************************************************************************
    Dim WSHShell
    Set WSHShell = WScript.CreateObject("WScripT.Shell")
    
    WSHShell.RegWrite "HKCU\Software\Classes\folder\shell\prompt!\command", "cmd.exe /s /k pushd ""%V"" "
    'WSHShell.RegDelete "HKCU\Software\Classes\folder\shell\prompt!\command"
    'WSHShell.RegDelete "HKCU\Software\Classes\folder\shell\prompt!"
    
    'WSHShell.RegWrite  "HKCU\Software\Classes\folder\shell\x_from_here\command", "explorer /n,/root,%1"
    'WSHShell.RegDelete "HKCU\Software\Classes\folder\shell\x_from_here\command"
    'WSHShell.RegDelete "HKCU\Software\Classes\folder\shell\x_from_here"
    
    WSHShell.RegWrite "HKCU\Software\Classes\Directory\shell\rename_files\command", "c:\program files\utils\rename.exe %1"
    'WSHShell.RegDelete "HKCU\Software\Classes\Directory\shell\rename_files\command"
    'WSHShell.RegDelete "HKCU\Software\Classes\Directory\shell\rename_files"
    I have left my comments in, although most are superfluous now I only use W10. The reason for the commented-out RegDelete lines is that it is easier to remove an item via code than drilling into the registry by hand - one has to know where one saved the entry (folder, directory etc). Note that the x_from_here is commented out as it no longer works usefully, but one day it might...

    I retained my 'prompt' command, as sometimes an admin prompt is not helpful - files created under that prompt are owned by the (real) administrator account, for example, and tweaks to, say, unwanted apps, affect all users (I found that out the hard way).
      My Computer


  5. Posts : 374
    Windows 10-64 bit (version 1909 build 18363.628)
    Thread Starter
       #5

    I used this one

    https://www.tenforums.com/attachment...indow_here.reg


    I would like to use only shawn brink's . It will solve the purpose. If I add it. It adds up two command prompts in my right click. Because the previous entry is still there!

    However, I don't want the admin privileges. I barely use them. I only want to rename the "command window here" to "open cmd here" to remove the "w" from it, hence the 'w' will select "New" only!
    Having the letter 'W' open 'New' submenu after customization?-commmand-dupli.png
      My Computer


  6. Posts : 1,189
    W10-Pro 22H2
       #6

    I didn't properly read your first screen-shot, so assumed you used the admin one - but I just located the 'standard' one here and had a look inside: the lines
    [HKEY_CLASSES_ROOT\Directory\shell\cmd2]
    @="@shell32.dll,-8506"
    add the key for directories, and I think the second line of this extracts a default description of the command (the bit that is giving you trouble). If you edit that to @="your_command" (or whatever string you like), then repeat for all 4 instances of the original, you can re-merge the .reg file and it should update the registry entries.

    Alternatively, open regedit, locate the key HKEY_CLASSES_ROOT\Directory\shell\cmd2 and edit the key 'cmd2' to what you want. Note, editing the registry like this can go horribly wrong, and I should not really be the one suggesting tweaks to Mr. Brinks' code! That is why I used the vbs method, as things are more readily undone.

    Note that in the registry, 'HKCR\folder' includes just folders (duh!) but 'HKCR\directory' includes the roots of drives also (there may be other differences).
      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 19:45.
Find Us




Windows 10 Forums