Way to quietly copy / move selected file(s) to other pane (source to target without dialog)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
9kvD38n6
Junior Member
Junior Member
Posts: 90
Joined: 2010-09-03, 08:23 UTC

Way to quietly copy / move selected file(s) to other pane (source to target without dialog)

Post by *9kvD38n6 »

Have been looking for a native way to do this. I currently use a series of Autohotkey commands to achieve this -
Send, {F5} [<- for copy; {F6} for move]
Sleep, 150
Send, {Enter}
but that requires a wait and sometimes misfires when the system is under load etc.

I've gone through TC's list of internal commands but all the relevant ones only bring up the same dialogs you get by using (modified) F5 / F6 in TC.

Any thoughts short of using a different script that gets the path for the selected file and the target path from TC and then handles the copying non-natively?

Many thanks!

[edited to cover move as well as copy]
Last edited by 9kvD38n6 on 2023-07-08, 12:31 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Way to quietly copy selected file(s) to other pane (source to target without dialog)

Post by *petermad »

29kvD38n6
From TC 11.00b1 you can use the parameter /G with the cm_Copy command to bypass the dialog.

You can use it in for example a button:

Code: Select all

TOTALCMD#BAR#DATA
cm_Copy /G

wcmicons.dll,62
Copy without dialog
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
9kvD38n6
Junior Member
Junior Member
Posts: 90
Joined: 2010-09-03, 08:23 UTC

Re: Way to quietly copy / move selected file(s) to other pane (source to target without dialog)

Post by *9kvD38n6 »

Thanks, that is great news.

I'm hoping this will this work for cm_MoveOnly as well?
Fla$her
Power Member
Power Member
Posts: 2998
Joined: 2020-01-18, 04:03 UTC

Re: Way to quietly copy / move selected file(s) to other pane (source to target without dialog)

Post by *Fla$her »

9kvD38n6 wrote: 2023-07-08, 12:32 UTC I'm hoping this will this work for cm_MoveOnly as well?
cm_RenMov
Find it in the help.
Overquoting is evil! 👎
9kvD38n6
Junior Member
Junior Member
Posts: 90
Joined: 2010-09-03, 08:23 UTC

Re: Way to quietly copy / move selected file(s) to other pane (source to target without dialog)

Post by *9kvD38n6 »

Managed to set it up successfully using custom TC hotkeys, very sweet. However, I used to call TC's internal commands via a postmessage calls, e. g. from PowerPro:
Win.postmessage("c=TTOTAL_CMD",0x433,6201,0x0)
I suppose there is no way I can do that and somehow add the /G parameter?
Post Reply