Windows

General discussion

Locked

change the action of send to

By pcross ·
How can I change the command of send to via right click on file or folder to move instead of copy?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

change the action of send to

by TheChas In reply to change the action of send ...

I have only been able to make this work for 1 file at a time.
Perhaps one of the peers that knows more about programming can ammend the commands so that it will work with multiple files.

1. Create a file in notepad with the following;
move %1 g:\stuff
g:\stuff is the location of the target folder to move the file to.
Save the file with a .bat extension in the folder of your choice. I named mine "stuff.bat". I would recommend a new unique folder to store these batch files in.

2. Create a new shortcut in the Send To folder.
Browse to the location of the batch file, and select it as the target file.

The new shortcut will appear in your send to menu.

As I said, this command only moves 1 file at a time. I tested it on my XP Pro box.

Chas

Collapse -

change the action of send to

by pcross In reply to change the action of send ...

This is a close to what I need, the next solution is best.

Collapse -

change the action of send to

by Joseph Moore In reply to change the action of send ...

I got this to work (finally!) by writing a 1-line BAT file. I created a directory C:\TEMP\TEST where I wanted to move a folder (and its entire contents) into. The folder I wanted to move is on my Desktop.
The BAT file (MOVE2TMP.BAT) contains this line:

move %1 c:\temp\test

I saved MOVE2TMP.BAT in the SendTo folder for my user profile (C:\Documents & Settings\JOE\SendTo) and it is now visible on my right-click Send To context menu -- with the other links in there like My Documents copy link, Desktop (create shortcut), etc.
Now, when I right-click on the folder on my Desktop and choose Send To -> MOVE2TMP.BAT the whole folder (and its contents) MOVES from the Desktop to c:\temp\test.

You could make multiple BAT files, each with a different directory destination, and put them all in the SendTo folder.
But, to be a little cleaner, you will probably want to keep all of the BAT files in the same folder somewhere on your system (C:\BATFILES maybe?), and just build Shortcuts to the BAT files. Put the Shortcuts in the SendTo folder for your profile.

I tried to get this to work using Explorer.exe, but I just couldn't get the syntax right. So, it is BAT files to the rescue once again!

hope this helps

Collapse -

change the action of send to

by pcross In reply to change the action of send ...

Way to go this is what I needed, still it would have been nice to modify the actual command of copy at the send to.

Collapse -

change the action of send to

by pcross In reply to change the action of send ...

This question was closed by the author

Related Discussions

Related Forums