Copy or move files using right click reg code


  1. Posts : 3
    Windows 7 Ultimate
       #1

    Copy or move files using right click reg code


    Hope someone can help with this as I am very frustrated trying to get it to work correctly!

    I currently have a reg file that moves a single file to my reg hack folder.

    (code example pasted from reg file extra '\' do not appear within registry itself.)

    ===================================================
    [HKEY_CLASSES_ROOT\Directory\shell\Move To Reg File Store]

    [HKEY_CLASSES_ROOT\Directory\shell\Move To Reg File Store\Command]
    @="cmd.exe /c move \"%1\" \"D:\\All Installation Files\\Registry Hacks etc\"\""
    ===================================================

    No problem works a treat

    However it is not available when you right click a folder. so you need to use this
    registry entry instead, and possibly one for HKEY_CLASSES_ROOT\Directory
    as well?

    ===================================================
    [HKEY_CLASSES_ROOT\Folder\shell\Move To Reg File Store]

    [HKEY_CLASSES_ROOT\Folder\shell\Move To Reg File Store\Command]
    @="cmd.exe /c move \"%1\" \"D:\\All Installation Files\\Registry Hacks etc\"\""
    ===================================================

    The problem is that the code for copying a folder ONLY copies the folder contents NOT the folder. Any files contained in the source folder are copied but NOT in their source folder.

    I've experiment using a cmd prompt window and get the same results. I can find no info or help searching the web.

    I really want a 'Move to' option but would be happy with copy to for now.

    I'm not a total newbie and I have spent serious time on this but am getting nowhere.

    Can anyone help PLEASE
      My Computer


  2. Posts : 16,149
    7 X64
       #2

    I think the move command is for moving files, or renaming files or directories.

    I don't think you can use the move command for what you want.

    You could use the MoveTo service, by attaching it to the context menu. Not quite the same thing , but it will do the job if you don't mind browsing to the destination folder each time.

    Otherwise, maybe call up a .cmd file from the folder/directory context menu , which will copy the folder and contents, then delete the original.
      My Computers


  3. Posts : 2,009
    Windows 7 Ultimate x86
       #3

    why not setting a shortcut to your Reg folder in "Send to" (enter shell:sendto in the search dialog to get to that folder)
    If you now right click on a folder and send it there it"ll be the folder and all of its content.
    But that's ultimately a copy option for move to IMHO requires editing the registry..I'll get back to you on that one.

    OK, I found it.If you feel confident to do that, open regedit as admin, navigate to
    HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers
    Right click on ContextMenuHandlers New/Key call it"{C2FBB631-2971-11D1-A18C-00C04FD75D13}" (without the "")

    If you'd like a separte Copy To Folder, repeat the process only this time, name it
    "{C2FBB630-2971-11D1-A18C-00C04FD75D13}" without the quotes.

    Or you just use one of Brinks Reg files and import them:
    Context Menu - Add Copy To Folder and Move To Folder

    Enjoy
    -DG
    Last edited by SledgeDG; 12 Sep 2010 at 15:21.
      My Computer


  4. Posts : 8,608
    Windows 7 Ultimate 32bit SP1
       #4

    FileMenu Tools should do what you want FileMenu Tools - Download
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:59.
Find Us