I need help with creating a custom file command. What I'd like it to do is to take a group of selected files and move them to a specific location via a directory tree dialog, as is done in ACDsee.
Select Files
Hit command on keyboard (in my case, ALT+M/C), the directory tree dialog comes up, and I can choose the directory (or create a new one).
Hit Enter, and they all move.
I'd find this an easier way to sort a large list of files, rather than creating a new folder on the destination side each time and then moving the selected files.
Any help? I'm really lost with the custom commands, but I'd like to learn.
I tried Copy to=ask for another button that would copy instead of move, but it's not working... I'm using it as the right-click command under Three Buttons.
I also coded this as a test, and works great:
@set dir = {dlgstring|New Folder Name:}
createfolder {sourcepath} ".\{$dir}"
copy MOVE/S to ".\{$dir}"
This one brings up a string entry box that lets me specify a new folder and moves the files. Great if you're just sorting stuff into sub folders.
I just tried Copy TO=ask as the right-click action of a three-button and it works okay for me.
Is there anything special about the source or destination that you're copying from or to? (e.g. A virtual folder like Desktop.) Did you try the copy button in the same place that the move button worked, or somewhere different?
Also check that the button's "function type" is the same as the one which works.
Can't think of anything else that might stop it working when it works okay for me. (If anything comes to mind I'll post it here.)
I just noticed that your command has "copy MOVE/S to ".{$dir}". The /S is shown in the manual to identify the type of command or argument. It's not needed in the actual command you create.
Have you got some spurious characters in your COPY TO=ask function as well ?