Page 1 of 1

Move selected file to new directory (feature request)

Posted: 2011-10-21, 10:40 UTC
by tpr
If the cursor is over a file and you hit F7, the new directory popup is pre-filled with the file's name. I use this feature a lot but it would be a great addition if by holding down a modifier (ctrl or shift) the selected file would also moved to the new directory.

Thanks

Posted: 2011-10-21, 11:05 UTC
by MVV
Just use following button:

Code: Select all

Command: %COMMANDER_PATH%\Addons\AskParam\AskParam.exe
Parameters: /c"Move file to new folder" /t"%P%O" /p"Move %N to:" cmd.exe /c "md "%%1" & move "%P%N" "%%1" & start "" "%%%%COMMANDER_PATH%%%%\TOTALCMD.exe" /S /L="%%1""
Or you may create user-command and assign a hotkey for it. Get AskParam from my signature.

Posted: 2011-10-21, 11:12 UTC
by Sir_SiLvA
Why not just use the MRT for that?

use [N]\[N] and every file with name N gets moved to a folder called N


PS: MRT = TCs Multi-Rename-Tool called with CTRL+M

Posted: 2011-10-21, 11:29 UTC
by Ambaquista
I use a small program "Files 2 Folder"
http://skwire.dcmembers.com/wb/pages/software/files-2-folder.php
Descrption (from the author): A right-click shell extension that will automatically create a folder based on the selected filename and move that file into that folder. If you select multiple files, a box will pop up asking for a folder name. That folder name will be created and all selected files will then be moved into the new folder.

Posted: 2011-10-21, 11:54 UTC
by tpr
Thanks for the suggestions. I vote for AskParam but MRT is also an interesting tip, never thought of that.

I know Files2Folder (I have sent a bug report once) and I could also do it using PowerPro but this feature would be great if it were built-in.

Posted: 2011-10-21, 12:20 UTC
by Sir_SiLvA
yes the MRT changes is new in V8 so Files2Folder is obsolete if u use tc...

Posted: 2011-10-21, 12:34 UTC
by tpr
I got issues with paths containing spaces so I modified the button like this:

Code: Select all

TOTALCMD#BAR#DATA
"%commander_path%\helpers\AskParam\AskParam.exe"
/c"Move file to new folder" /t"%P%O\" /p"Move '%O.%E' to:" cmd.exe /c "md "%%1" & move "%P%O.%E" "%%1"
wcmicons.dll,29
Move file to new folder


-1

I created a user command and mapped it to ctrl+F7. Works like charm, thanks for your help!

Posted: 2011-10-21, 17:56 UTC
by Balderstrom
I think it would be well within reason for TC to have actual COPY/MOVE commands that take parameters.

Code: Select all

MOVE %S %O
MOVE %N %O
etc.
While we may never get internal scripting for TC, this would definitely be a step forward.