Copy or move file to target so that when I {tab} over, the copied / moved file is focused in the list

English support forum

Moderators: white, Hacker, petermad, Stefan2

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

Copy or move file to target so that when I {tab} over, the copied / moved file is focused in the list

Post by *9kvD38n6 »

If I copied / moved several files, focus might be put on the last file copied / moved, even though this really just makes sense when operating on a single file. The idea is that if the target folder has lots of files it can take a lot of scrolling to locate the file I just copied, e.g. when I want to copy its new path to the clipboard. Having an option (on the copy / move dialog?) to focus the new target file would be helpful in that case. But maybe it's already possible? Thanks.
User avatar
Wojtek
Junior Member
Junior Member
Posts: 65
Joined: 2010-02-07, 11:58 UTC
Location: Germany

Re: Copy or move file to target so that when I {tab} over, the copied / moved file is focused in the list

Post by *Wojtek »

I've been looking for something like this for a very long time, but it seems that it's not possible right now.

Maybe this has already been requested?
Asus Maximus VIII Hero · Win10 Pro x64
Crucial MX500 1TB SSD · 64GB Corsair Vengeance LPX · nVidia GeForce RTX 3060 · Intel i7 7700K

Lenovo ThinkPad X1 Yoga 2.Gen · Win10 Pro x64
512GB SSD · 16GB RAM · intel HD620 · i7-7600U

TC 11.02 32-bit #347308
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Copy or move file to target so that when I {tab} over, the copied / moved file is focused in the list

Post by *petermad »

29kvD38n6
For copying you can use this button to find the copied file in the other panel:

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE% /A /O
/S /R=%P%N
WCMICONS.DLL,19
Mark file in opposite panel with same name as file under cursor


-1
To make the button:
1. Mark the green text above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctri+C).
3. Right click on TC's buttonbar and choose "Paste".
It will of course not be of any use for moved files :-(
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
9kvD38n6
Junior Member
Junior Member
Posts: 89
Joined: 2010-09-03, 08:23 UTC

Re: Copy or move file to target so that when I {tab} over, the copied / moved file is focused in the list

Post by *9kvD38n6 »

Sorry for necro-ing this thread, but I wanted to share the PowerPro script I'm using to
  • Automatically put the new path of a single file moved from the left to the right pane on the clipboard
  • at the same time switch focus to the right pane and focus the newly moved file in the list for further processing.
This is often very useful to me. If anyone is interested, please let me know and I can simplify / explain the script or re-post it as an Autohotkey script.

Code: Select all

		local FileNameAndExtension = .Misc@TC_GetInfo("S","NameExt")
		;; .Misc@Debug(FileNameAndExtension)
		.misc@AHKSend("{f6}{enter}", "ahk_class TTOTAL_CMD")
		wait.for(150)
		clip.set(.Misc@TC_GetInfo("T","PathOnly")++FileNameAndExtension)
		.Misc@OSD_Bar("Target path put on clipboard.")
		do(?$c:\Program Files\totalcmd\TOTALCMD64.EXE$, ?$/O /S /P=R /R="$++.Misc@TC_GetInfo("T","PathOnly")++FileNameAndExtension++?$"$) ;; DON'T CHANGE to message call as wait for copy finished too unreliable
		;; move back out of archives for .xml archive files of new Office formats:
		if(find(FileNameAndExtension, ".docx")+1 or find(FileNameAndExtension, ".xlsx")+1 or find(FileNameAndExtension, ".pptx")+1)
			.misc@AHKSend("^{PgUp}")
		return
Post Reply