A button to copy files to the place choosed by the user

Hello,
Wow... i'm not really proud of my title lol
Let me try to explain with my approximative english :slight_smile:

When i have to sort a lot of files to different pathes one by one, i have to switch from one destination tab to the other.
So i thought about a "magic buttons" that would move the files to a specified path, quite easy to make if you write the destination path in the code of the button.
The problem is that if you want to change the path, you have to change the code, so i would like to find a way to make this path choosable by the user, memorised somewhere, useable by the button.

Since the new version of DO, i think that i could make a button that writes a choosen path to a text file, but i don't know how my button could read the information inside.

Is it possible ? do you have a start of solution to me ? :slight_smile:

Thanx for your help...

Hah! I have a very good alternative that as a bonus works everywhere, even in Windows Explorer, file open/save dialogs, Desktop etc.

Type in Opus addressbar /sendto and there put a shortcut to folder you want to have as destination. Now select files you want to copy, right-click them and choose Send to > [your shortcut] to copy them there :sunglasses:
Additional bonus: hold shift when you click your Send to > target to MOVE the files there.

Simple, effective, thank you very much :slight_smile:
Not perfect because it needs to create and delete shortcuts before each different uses, and the risk of clicking on the bad link :slight_smile:
But it is so simple to use that it will be the best alternative to me if i can't make my magic button :slight_smile:
Thank you Jsys

Idea #2: you could make a button and use Opus' commands (in button): Copy {allfile} {dlgfolder}

It will make a window pop-up which will let you 1) select folder 2) select favorites (drop-down menu) and 3) allow you to type/paste path.

(it will also give you list of recent paths and allow you to create new folders)

Would using {dlgchoose} work for you?

Example:

Copy MOVE TO={dlgchoose|Move files to:|Path 1=C:\Temp1\+Path 2=C:\Temp2\+Path 3=C:\Temp3\}

Would move the selected files to 1 of the options that you would get from a drop-down list.

I didn't know dlgchoose, i will surely use it for other things.. so thank you very much for the idea :slight_smile:
But i wanted to offer the user the possibility to simply chose the destination without modifying the code.

And the post Global variables to store dynamic folder bookmarks? gave me the solution ! :slight_smile:
I used aliases :

I made a 3 buttons, on the middle mouse button, i make an alias with the path of the choosen file (or folder) :

Favorites ADD=alias PATH {filepath} NAME=DestPath1

On the left mouse button, i copy my files, to the alias :

copy TO /DestPath1

And on the right mouse button, i move my files, to the alias :

copy MOVE TO /DestPath1

Et voila :slight_smile:

DOpus is magic...
Let me know if it will be usefull for you :wink: