Hello Dalai,
Use Case is very simple. After synchronizing directories with file, the directory timestamp of source and target should be same, so I know that they have a synced status. If timestamp is diefferent, if have to check manually the directory of source and target about the files in there.
So the timestamp of the directory can be an indicator for "Synced status". In practical terms the Use case described in another way. After downloading three docuements, I copy them first in my main document folder "d:\Magazines\Unread"".
Right after I move them from the Downloadfolder to my Backuptdrive "S:\Magazines\Unread".
The same thing I can do as well with Folder Sync of Total Commander and syncing the Source "d:\Magazines" and the Target "S:\Magazines"
Now the but:
After copying or syncing the "Unread" folder of "d:\Magazines" with the existing "s:\Magazines", all the subfolders incl. the new files will be copied and synchronized. But the Timestamps of the Subfolders of Source and Target are different, because timestamps of existing folders in Target will not changed ebevn when new files are copied in there.
That´s why a manual Timestamp Copy of Folders would make sense.
Anyway, I created now the following Robocopy command which would do that and what I can add in the Buttonbar of TC:
robocopy /e /timfix /dcopy:t /copy:t d:\Magazines S:\Magazines
This copies all timestamps of directories and subdiresctories
But I am still struggling to put that in the Buttonbar commandline, that it is executed correctly. Left pane is on "d:\Magazines", right pane on "S:\Magazines".
But if I create the Buttonbar Command
robocopy /e /timfix /dcopy:at /copy:t %P %T
the two paramters %P (Source Path) and %T (target Path) are not handed over to the robocopy Commandstring.
Tried it as well in the parameter field and alos with quotation marks before and after.
Finallly I alos tried a simplified command like "cd %P" to see if TC would execute this via Buttonbar. But also there the %P is not handed over to the cd command.
What am I doing wrong - where is the Syntax bug for handing over the Source and Target Path to the command?
Any help welcome. If correct Syntax will be found, I can create a Buttonbar command, where I can quickly synchrionize the Timestamp of Source and Target Folder incl. Subfolders. And that´s what I need.
So I am looking forward for your help here to implement that Buttonbar command correctly.
Regards and thx in advance,
jnauth
Use Case is very simple. After synchronizing directories with file, the directory timestamp of source and target should be same, so I know that they have a synced status. If timestamp is diefferent, if have to check manually the directory of source and target about the files in there.
So the timestamp of the directory can be an indicator for "Synced status". In practical terms the Use case described in another way. After downloading three docuements, I copy them first in my main document folder "d:\Magazines\Unread"".
Right after I move them from the Downloadfolder to my Backuptdrive "S:\Magazines\Unread".
The same thing I can do as well with Folder Sync of Total Commander and syncing the Source "d:\Magazines" and the Target "S:\Magazines"
Now the but:
After copying or syncing the "Unread" folder of "d:\Magazines" with the existing "s:\Magazines", all the subfolders incl. the new files will be copied and synchronized. But the Timestamps of the Subfolders of Source and Target are different, because timestamps of existing folders in Target will not changed ebevn when new files are copied in there.
That´s why a manual Timestamp Copy of Folders would make sense.
Anyway, I created now the following Robocopy command which would do that and what I can add in the Buttonbar of TC:
robocopy /e /timfix /dcopy:t /copy:t d:\Magazines S:\Magazines
This copies all timestamps of directories and subdiresctories
But I am still struggling to put that in the Buttonbar commandline, that it is executed correctly. Left pane is on "d:\Magazines", right pane on "S:\Magazines".
But if I create the Buttonbar Command
robocopy /e /timfix /dcopy:at /copy:t %P %T
the two paramters %P (Source Path) and %T (target Path) are not handed over to the robocopy Commandstring.
Tried it as well in the parameter field and alos with quotation marks before and after.
Finallly I alos tried a simplified command like "cd %P" to see if TC would execute this via Buttonbar. But also there the %P is not handed over to the cd command.
What am I doing wrong - where is the Syntax bug for handing over the Source and Target Path to the command?
Any help welcome. If correct Syntax will be found, I can create a Buttonbar command, where I can quickly synchrionize the Timestamp of Source and Target Folder incl. Subfolders. And that´s what I need.
So I am looking forward for your help here to implement that Buttonbar command correctly.
Regards and thx in advance,
jnauth
Statistics: Posted by jnauth — 2025-02-11, 19:18 UTC