Page 1 of 1

Move files to a sprecial folder with single click / shortcut

Posted: 24.07.2015, 09:31
by Dirk
There are some folders I regularly move files to. Is there a way to move (and copy) files being marked with a single click / a shortcut to a special folder (without opening it in the other panel??

Re: Move files to a sprecial folder with single click / shor

Posted: 28.07.2015, 19:02
by therealjd
you can do this using a bat file
my example, i'm using a target folder named "rainbow".

create a file named move-selection-to-rainbow.bat with the following code
replace R:\test\rainbow with your target directory

Code: Select all

for /f "delims=" %%i in (%1) do move /-y "%%i" "R:\test\rainbow\"
Add the bat file to your favorites with the following parameters

Image

Re: Move files to a sprecial folder with single click / shor

Posted: 28.07.2015, 21:50
by Dirk
Thank your very much, therealjd,

I obviously did a mistake, it does not work, cannot find it:
http://i.imgur.com/UYSiiUM.png
http://i.imgur.com/gyGlD6v.png (content of bat file)

Does the bat overwrite an existing file in the destination?

Re: Move files to a sprecial folder with single click / shor

Posted: 29.07.2015, 05:53
by therealjd
Dirk wrote:
Does the bat overwrite an existing file in the destination?
the bat file will prompt you to overwrite if the file already exists
you can suppress the overwrite prompt by changing to /-y to /y

you can add "pause" to the 2nd line of the bat file to see what is going wrong with the command.

good luck!

Re: Move files to a sprecial folder with single click / shor

Posted: 29.07.2015, 08:32
by Dirk
Alright, thank you very much, therealjd.