[REQ] Copying to multiple destination

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Both approaches (tabs+hotlist) are problematic: For example, I have a fixed set of locked tabs which I use very often - but I wouldn't want to multi-copy files there. The directory hotlist is limited to 200 items, so it couldn't be used for mass installations either. I'm looking for a method with which an admin could create a list of target dirs and save them in some file, and then use that file as the destination.
Author of Total Commander
https://www.ghisler.com
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

ghisler(Author) wrote:Both approaches (tabs+hotlist) are problematic: For example, I have a fixed set of locked tabs which I use very often - but I wouldn't want to multi-copy files there. The directory hotlist is limited to 200 items, so it couldn't be used for mass installations either. I'm looking for a method with which an admin could create a list of target dirs and save them in some file, and then use that file as the destination.
That seems a very good idea. I don't see what's the problem here (if you could use a Listfile for this).

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Jungle
Member
Member
Posts: 129
Joined: 2005-12-03, 11:18 UTC
Contact:

Post by *Jungle »

ghisler(Author) wrote:The directory hotlist is limited to 200 items, so it couldn't be used for mass installations either. I'm looking for a method with which an admin could create a list of target dirs and save them in some file, and then use that file as the destination.
1. who would multi-copy to 200 locations?
2. in that case it is a user's problem how to create such a file (if a file with dest paths could be used).
3. mask/regexp?
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Jungle wrote:1. who would multi-copy to 200 locations?
If that feature is implemented there will be a request to make this possible. That teached the past. And why should this be limited if not necessary?.
2. in that case it is a user's problem how to create such a file (if a file with dest paths could be used).
Agree.

To create such a file manually would not be too difficult (using cm_CopyFullNamesToClip).

And Even an automatic solution I can think of with a command similar to "cm_FTPaddToList" just"cm_MultiCopyAddToList".

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Jungle
Member
Member
Posts: 129
Joined: 2005-12-03, 11:18 UTC
Contact:

Post by *Jungle »

Sheepdog wrote:That seems a very good idea.
only as additional option, IMHO.
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

200 sounds like an entirely arbitrary limit...
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
User avatar
totfun
Junior Member
Junior Member
Posts: 67
Joined: 2003-03-11, 07:13 UTC

Post by *totfun »

Many times I have to copy some files from machine A to several other machines A1, A2, ..., An in my network.

I'd like to select in the target panel (i.e. in \\mydomain or \\myworkgroup) the machines involved in such a copy a then (after pressing F5) I'd like to be prompted for the common path (c$\documents for example) and other details.

I can't achieve that using TC now (am I wrong?)

Will it be possible in the next TC?

Is it convenient to solve this problem as a part of the problem you are talking about?


Totfun
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

This speak about 200 is tipical TC comunity boolshit.
Habemus majkam!
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Hi, I have done my very first AutoHotkey script to solve this problem, so be patient ... and feel free to modify it to your needs.

Code: Select all

; The following script allows to copy selected files/folders
; from the active panel to _each_ TAB of the opposite panel,
; using BackgroundTransferManager.
;
; Note:
; Due to the fact, that it would cycle in an endless loop through TABS,
; it stops if the "path" is identical to the one of the very first TAB
; ... so prevent TABs with the same path, it makes no sense anyway.

sMessageText= This will copy the selected files/folders`n
sMessageText=%sMessageText% to each TAB of the opposite panel.`n`n
sMessageText=%sMessageText% You may pause the Background Transfer Manager now ...`n`n
sMessageText=%sMessageText% Continue ?

IfWinActive, ahk_class TTOTAL_CMD
{
	IfWinNotExist, ahk_class DOWNDLGLIST2
    {
		SendMessage, 1075, 559, , , ahk_class TTOTAL_CMD	;cm_OpenTransferManager
	}
	
	MsgBox, 4, , %sMessageText%
	IfMsgBox, No
		return

	Sleep, 100
	WinActivate, ahk_class TTOTAL_CMD

	; activate the very first target TAB
	SendMessage, 1075, 5101, , , ahk_class TTOTAL_CMD
	Sleep, 100

	;get current target path and save it
	ControlGetText sFirstPath, TMyPanel2

	;return to source panel
	Send, {Tab}

	Loop
	{
	
		;copy selected items to target panel
		PostMessage, 1075, 905, , , ahk_class TTOTAL_CMD	;open Copy files dialog
		WinWaitActive, ahk_class TInpComboDlg, ,10
	 	Send, {F2}
		Sleep, 100
	
		;activate target panel
		Send, {Tab}
		Sleep, 100
	
		SendMessage, 1075, 3005, , , ahk_class TTOTAL_CMD	;cm_SwitchToNextTab
		Sleep, 100
	
		;get current target path
		WinWaitActive, ahk_class TTOTAL_CMD, ,10
		ControlGetText sPath, TMyPanel2
	
		;return to source panel
		Send, {Tab}
		Sleep, 100

		SendMessage, 1075, 529, , , ahk_class TTOTAL_CMD	;cm_RestoreSelection

		If ( sPath = sFirstPath )
			break
	}
}

Return
#5767 Personal license
bwh
Junior Member
Junior Member
Posts: 12
Joined: 2006-05-30, 08:27 UTC

Post by *bwh »

how about a simple check box on the copy/move form?

i know its a limited idea not too great for flexibility but assume one can search/combine all the target folders in the right hand side of TC.
i select the files to be copied on one side and select the target folders on the right

then when i select copy/move it may provide me with option "to selected folders"

in case i could not express what i mean, here's what i mean by more visual means :)
[img]http://img301.imageshack.us/img301/7833/option3ss.jpg[/img]
User avatar
Vochomurka
Power Member
Power Member
Posts: 816
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka »

I use PowerPro script for this purpose.
Single user license #329241
PowerPro scripts for Total Commander
User avatar
Strogg
Junior Member
Junior Member
Posts: 89
Joined: 2003-08-24, 17:16 UTC
Location: Georgia

Post by *Strogg »

Almost 4 years passed. Is there any chance this feature to be implemented in TC?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

What about 'Options>> - Copy to all selected folders' mode in copy dialog?
User avatar
Strogg
Junior Member
Junior Member
Posts: 89
Joined: 2003-08-24, 17:16 UTC
Location: Georgia

Post by *Strogg »

MVV wrote:What about 'Options>> - Copy to all selected folders' mode in copy dialog?
Indeed. Never have looked in copy dialog options after updating to the final version :)
Btw. It also would be nice to wrire the destination folders in copy dialog manually, like in FAR: ex. C:\Temp, C:\Tmp and etc.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

This checkbox was added in TC 7.50. :)

Well, you're right, TC doesn't allow to enter paths manually. BTW, I haven't seen any detailed request description in this topic (or in topic under Suggestions forum). :wink:
Post Reply