I do realize I'm quite late to the party for an "answer" but actually I've been searching the forum b/c of a similar problem and - truth be told - I went under the assumption that such a possibility might already exist.
As for the renaming-and-moving problem I concur with the OP but would like to even go beyond that. Namely I would like to save such a target-panel [%T] rename-and-move-operation and then trigger/call it via a button to automatically rename and copy/move a large number of files from one directory to another.
For example that way one could save "hidden" media-files from a temporary browser-cache directory to a permanent target directory via the push of a button in the TC button bar.
Any suggestions if and how this is meanwhile feasible via the MRT or any other procedure using TC?
I had never a need for this, and now [T..] is taken already as time related parameter.
But you can save and load the MRT settings via the F2-Load/save Button in MRT-Dialog. For example as name: my saved setting
That saved settings you can load also by a TC command which you can also call from a button. (or as user defined commando with additional possible keyboard shortcut)
Command: MULTIRENAME my saved setting
Icon file: %Commander_Path%\WCMICONS.DLL
ToolTip: MULTIRENAME my saved setting
Perhaps the suggested [T] could be [MV] as in MoVe with some options? [MV] moves to target panel, [MV=predefined\path] (e.g. always "c:\temp\"
Perhaps allow for the target path/folder to be created on the fly so you can make use of time stamps for example or set parameters for overwrite, skip, autorename etc. Lots of possibilities.
That advanced section could have options where you can define actions AFTER the renaming process has successfully completed:
- Move files...
- Pack files...
- Select files... ( see http://www.ghisler.ch/board/viewtopic.php?t=49133 )
- ... etc
Thanks, "Stefan2", for your suggestion to "buttonize" such a renaming operation. However, if I'm not mistaken, this would still be limited to an interactive renaming operation requiring the user to press "Start" in the MRT. And it would neither allow to insert the Target-Panel-path before the new file-names automatically so as to move them there - nor would it allow to auto-execute that stored renaming procedure on that same push of the "calling-button".Stefan2 wrote:That saved settings you can load also by a TC command which you can also call from a button. (or as user defined commando with additional possible keyboard shortcut)
Or am I missing something here? As already mentioned, my goal would still be to automatically rename dozens of selected temporary files (without extension) from a browser-cache-dir to e.g. "*.jpg" - and then copy them to a permanent target-directory with the purpose of saving images that cannot be saved manually from the browser because the web-sites visited wouldn't allow manual saving via right mouse-button.
Amazingly enough a direct copy-button with "%P%S %T%S" with all the necessary path-parameters already implemented won't do the trick either because TC refuses to accept the internal copy-command as a command entry here - and the external "xcopy/robocopy"-command surprisingly enough will not allow to copy multiple selected files with auto-changed target-name to e.g. "*.jpg" at the same time (only single files or the complete folder).
Or does someone know a better external copy-command/program that would accept the necessary parameters to copy-rename those multiple selected files?
You are right, that command will only load the MRT with the saved settings.
For your task
dozens of selected temporary files(without extension) from a browser-cache-dir
copy them to a permanent target-directory with "*.jpg"-extension
you could utilize a script (Batch/PoSh/VBS/AutoHotkey/...) like
- for each selected file in TCs "%L" temp file list
- -- copy current line/file to MyTarget with "*.jpg"-extension
For example a VBScript:
Code: Select all
'// TC Button: '// -------------------------------------------------- '// TOTALCMD#BAR#DATA '// "%Commander_Path%\myTools\ForEachSelectedDO - Kopie to Target.vbs" '// "%L" "X:\temp\mytarget" '// C:\windows\System32\WScript.exe,2 '// ForEachSelectedDO - Kopie to Target '// '// '// -1 '// -------------------------------------------------- '// '// Erklärung zu TOTALCMD#BAR#DATA >> https://ghisler.ch/board/viewtopic.php?p=335758#335758 '// Explanation about "TOTALCMD#BAR#DATA" >> https://ghisler.ch/board/viewtopic.php?p=335879#335879 '// '// Purpose: '// -- Adust your Target directory '// -- Select a few files '// -- Execute this script '// -- The selected files will be copied to your target and '.jpg' will be added to each copied file. ' ' Found at https://ghisler.ch/board/viewtopic.php?p=337031#337031 ' ' Set FSO = CreateObject("Scripting.FileSystemObject") Set wsArgs = WScript.Arguments If wsArgs.Count > 0 Then Set strTCTempFile = CreateObject("Scripting.FileSystemObject").OpenTextFile(wsArgs(0), 1) Else MsgBox "Error" Wscript.Quit End If If wsArgs.Count > 1 Then strTargetDir = wsArgs(1) Else strTargetDir = "X:\temp\mytarget" End If ' ' Do While Not strTCTempFile.AtEndOfStream strCurrFile = strTCTempFile.ReadLine if Right(strCurrFile,1) <> "\" then 'strBaseName = FSO.GetBaseName(strCurrFile) strName = FSO.GetFileName(strCurrFile) 'FSO.CopyFile source, destination[, overwrite] FSO.CopyFile strCurrFile, strTargetDir & "\" & strName & ".jpg" end if Loop ' 'END
Still, is it too much to ask that TC - in the long run - should be able to deal with such a relatively simple task by internal means? As I've already mentioned, the simple-most internal copy command would do the "trick" - if only it could be declared as a command in the TC-button-bar configuration-dialogue. And also a pathway via the MRT would be feasible. So I still support the OP's wish for a %T-Target-Panel option to insert the current Target-Panel-path and it would also be great if the MRT could somehow be invoked non-interactively via button to un-attendedly execute a stored MRT-operation.