Adding Copy To Win7 Contextual Menu

I have been looking for a tutorial on this subject, but I can only seem to find “Copy To Folder” or “Move to Folder” tutorials.

I would like to be able to right-click on a specific excel file Named XYZ.xls then select Copy To (via the contextual menu) a specific file which is always named "test_setup.xls so that all the contents of XYZ.xls replaces the contents of test_setup.xls. As it happens both of these files are located in the same directory.

I know that I can open the file and choose Save As, and several other ways but those ways just aren’t very efficient. And other people inevitably screw stuff up.

Can this functionality be added to the contextual menu via a registry tweak for win7?

Thanks,

MM

You can use this with the command “copy xyz.xls test_setup.xls /y”

Thanks, yoyodyne.

But I neglected to mention that my company has strict rules on 3rd party software…even if free.

:frowning:

You can just make a batch file to do it…

I hate it when I am in a hurry and write something that just doesn’t do…

I am not sure if a batch file will work because I also neglected to mention that the directory/folder in question would have dozens of files in it that would be renamed when a particular file is needed.

What does this mean? That you will have dozens of different context menus, one for each of

copy xyz.xls test_setup1.xls
copy abc.xls test_setup2.xls
… ?

If you just mean
copy xyz.xls test_setup.xls
<do stuff>
copy abc.xls test_setup.xls
<do stuff>

Then here’s a batch file you can drag and drop to. Put this in testcopy.bat or whatever.



cd X:\yourDirectory
X:
copy %1 test_setup.xls
pause


The pause is just so you can verify it works correctly, or see any errors. Remove it once it does. Then

<drop xyz.xls onto testcopy.bat>
<do stuff>
<drop abc.xls onto testcopy.bat>
<do stuff>

I don’t know how to add to context menus, but you’d probably need a batch file like that to call from the menu anyway.