Move files to a sprecial folder with single click / shortcut

Discussion, questions and support.
Post Reply
Message
Author
Dirk
Posts: 187
Joined: 02.06.2010, 13:38

Move files to a sprecial folder with single click / shortcut

#1 Post by Dirk » 24.07.2015, 09:31

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??
FC newest stable version, portable
Win 7 64bit

therealjd
Posts: 94
Joined: 09.09.2011, 17:48
Location: Canada

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

#2 Post by therealjd » 28.07.2015, 19:02

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
FC XE 0.760 x86
Win 7 Ent 64bit SP1 |16 GB ram |Intel Core i7-3770
Win 10 Pro Anniversary | 4GB ram

Dirk
Posts: 187
Joined: 02.06.2010, 13:38

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

#3 Post by Dirk » 28.07.2015, 21:50

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?
FC newest stable version, portable
Win 7 64bit

therealjd
Posts: 94
Joined: 09.09.2011, 17:48
Location: Canada

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

#4 Post by therealjd » 29.07.2015, 05:53

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!
FC XE 0.760 x86
Win 7 Ent 64bit SP1 |16 GB ram |Intel Core i7-3770
Win 10 Pro Anniversary | 4GB ram

Dirk
Posts: 187
Joined: 02.06.2010, 13:38

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

#5 Post by Dirk » 29.07.2015, 08:32

Alright, thank you very much, therealjd.
FC newest stable version, portable
Win 7 64bit

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 52 guests