[REQ] Copying to multiple destination
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
That seems a very good idea. I don't see what's the problem here (if you could use a Listfile for this).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.
sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
1. who would multi-copy to 200 locations?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.
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?
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?.Jungle wrote:1. who would multi-copy to 200 locations?
Agree.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).
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
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
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
- majkinetor !
- Power Member
- Posts: 1580
- Joined: 2006-01-18, 07:56 UTC
- Contact:
- sqa_wizard
- Power Member
- Posts: 3896
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
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
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]
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]
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
I use PowerPro script for this purpose.
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander