Move selected file to new directory (feature request)

Here you can propose new features, make suggestions etc.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
tpr
Junior Member
Junior Member
Posts: 37
Joined: 2011-06-05, 12:55 UTC

Move selected file to new directory (feature request)

Post by *tpr » 2011-10-21, 10:40 UTC

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

User avatar
MVV
Power Member
Power Member
Posts: 8334
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV » 2011-10-21, 11:05 UTC

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.

User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 2790
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA » 2011-10-21, 11:12 UTC

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

User avatar
Ambaquista
Junior Member
Junior Member
Posts: 48
Joined: 2005-05-27, 11:11 UTC
Location: Luanda, Angola

Post by *Ambaquista » 2011-10-21, 11:29 UTC

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.

tpr
Junior Member
Junior Member
Posts: 37
Joined: 2011-06-05, 12:55 UTC

Post by *tpr » 2011-10-21, 11:54 UTC

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.

User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 2790
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA » 2011-10-21, 12:20 UTC

yes the MRT changes is new in V8 so Files2Folder is obsolete if u use tc...

tpr
Junior Member
Junior Member
Posts: 37
Joined: 2011-06-05, 12:55 UTC

Post by *tpr » 2011-10-21, 12:34 UTC

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!

User avatar
Balderstrom
Power Member
Power Member
Posts: 2148
Joined: 2005-10-11, 10:10 UTC

Post by *Balderstrom » 2011-10-21, 17:56 UTC

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.
*BLINK* TC9 Added WM_COPYDATA and WM_USER queries for scripting.

Post Reply