kodepr wrote: 2024-04-15, 09:51 UTC
so I can have my backups created in another path than the original file.
Bravo!
Yes, with TCs' parameter and a scripting languages you can do many things on your own.
For example lookup the TC-parameter
%T
Click the [Help]-Button or press the F1-key or open the TOTALCMD.CHM from TC folder (or subfolder "e").
In CHM go > Operation > User interface > click on the "Button bar"-picture > in the text click on "Dialog box to change"
> use then there the "Ctrl+F"-search to find %T
%T inserts the current TARGET path.
-----------------------------------
TOTALCMD#BAR#DATA
powershell -NoExit
GC '%F'| %%{$_ ; $O=(GI $_);COPY $_ $(
'%T' + $O.BaseName + $O.LastWriteTime.ToString('_Backup_yyyy-MM-dd-HHmmss') + $O.Extension)}
C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe
Copy ALL selected files to
TARGET as a backup AND add last writedate to the filename.
1
-1
-----------------------------------
You can also put a leading question mark-sign as FIRST parameter, for to be prompted, to check and maybe adjust the command:
Parameters:
?'%N'| %%{$O=(GI $ . . . . . . .