add a new customized context menu


  1. Posts : 128
    Win10
       #1

    add a new customized context menu


    I would like to add a new customized context menu which (when clicked) moves the currently marked file to a fix destination folder D:\data.

    Therefore I created a *.reg file with the following content:

    Code:
    [HKEY_CLASSES_ROOT\*\shell\Move To D-data\command]
    @=cmd /c move /V %1 "D:\data"
    Adding it to context menu works.

    But if I click on it I got the a warning popup:

    "This file does not have an app associated with it for performing this action. Please install an app"

    Whats wrong?

    Related question:

    What, if I want to extend the command above not only for ONE file but many currently marked files (even 100 files).

    How should the command look like?
      My Computer


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

    Hi, this functionality already exists in Windows (well something very close to it, and more flexible).

    If you right click a selection of files, click 'Sendto', click folder, browse for folder, and approve that, the files are copied to the target folder.

    If you SHIFT click Send to, the files are moved.

    If you wish to always or repeatedly copy or move to a particular folder, simply put a shortcut to that folder in the Sendto folder and use that.

    You may also be interested in the reg files in this tutorial from the huge searchable Tutorial section:
    Add 'Copy To folder' and 'Move To folder' Context Menu in Windows 10
      My Computers


  3. Posts : 128
    Win10
    Thread Starter
       #3

    @dalchina:
    Thank you for your suggestions

    I know these tricks, BUT they required an additional click either on "Send to" context menu with an additional high precision (=concentration) mouse click or an additional folder navigation+selection dialog action.
    I want to avoid this.
    It should be maximal fast with 1 right click (=showing the context menu) and only 1 more click to select
    "Move to D:\tmp" context entry

    Therefore your solutions are to slow/require too much concentration.
    I will use this frequently and appreciate a really comfortable method.

    Can you help me with my command?
      My Computer


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

    Thank you for your reply.


    I have searched tenforums for you.

    The same question was asked here. See if that does at least part of what you want. Do read thru the thread and find the appropriate post.
    How to add Move to a specific folder to the context menu?

    Using tenforums as a resource can be a very helpful approach.

    Note that the copy/move action must allow for the case where the file exists. Good implementations give the option to specify overwrite or not, for example.
    Last edited by dalchina; 23 Sep 2022 at 00:19.
      My Computers


  5. Posts : 128
    Win10
    Thread Starter
       #5

    @dalchina:

    Your linked thread is perfect.
    I will try it.
    Thank you
      My Computer


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

    Another option to move a file to a folder (which I mocked up in a couple of minutes) is to create e.g. a simple Autohotkey (free) script (1 line) and add that to the context menu using Easy Context Menu (free).

    No registry intervention required.

    Mutliple file selection- I don't know how that could be handled offhand.
      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 06:48.
Find Us




Windows 10 Forums