New
#1
How to add a button to the context menu to copy a file to a directory
Hi,
I use a few different files on a very regular basis. As an example, I have an Excel file that starts out as a template which I then modify to fit the situation. I start by navigating to the location of the "template" (via a shortcut to make it quicker), copying the file and then navigating to the sub directory where I need to copy the file. It's not a huge issue, but I'd love to simply navigate to the sub directory, right click my mouse to bring up the context menu and then click on a button to copy the file to the current sub directory I'm in.
I'm very close, but need help tweaking what I have. I created a bat file that I call from the Context menu (see below for the path I used). It works great, the only problem is that I have to click on a directory for my context button to come up. When I click on it copies my file, not into the directly I've selected, but into the current directory I'm in. This is actually good, because I'd like to be in the directory and then copy the file. The problem arises when I am in a directory that doesn't have a sub directory. In this case I have no directory to right click on and thus, I can't get my menu button to come up. I could go up one directory, click on the one I "really" want to work on, paste my file and then move the file, but I'm sure there is a better way.
Is there a location in registry where I can create a key that will come up when I right click my mouse and bring up the context menu my custom button will appear, allow me to run my bat file and copy my file into that active directory? Thanks in advance for any help with this question.
My current registry location:
HKEY_ROOT_CLASSES_ROOT
Directory
Shell
CostCalc (I created this)
Command (I created this and it calls my bat file)
My bat file:
rem file located in this location
Copy J:\work\ex_files\costcalc.xls