Script to copy a renamed copy of a file to a folder
Posted: 29 Jul 2019 11:07
Dear all,
I have a script that sends a copy of a file to a folder
$SelectedItems = get("SelectedItemsPathNames", "|"); copyto "C:\OLD.FILES", $SelectedItems;
Now I would like that the copied file (not the original) is renamed once in the destination folder so that the date is added to the file name.
Up to now I obtain this result by manually selecting the file
using this script:
::rename , '*.<datem yymmdd>'
Than copying the file
$SelectedItems = get("SelectedItemsPathNames", "|"); copyto "C:\OLD.FILES", $SelectedItems;
And finally manually removing the date to the original file.
Any chance to merge all these tasks into a single script?
Thank you
I have a script that sends a copy of a file to a folder
$SelectedItems = get("SelectedItemsPathNames", "|"); copyto "C:\OLD.FILES", $SelectedItems;
Now I would like that the copied file (not the original) is renamed once in the destination folder so that the date is added to the file name.
Up to now I obtain this result by manually selecting the file
using this script:
::rename , '*.<datem yymmdd>'
Than copying the file
$SelectedItems = get("SelectedItemsPathNames", "|"); copyto "C:\OLD.FILES", $SelectedItems;
And finally manually removing the date to the original file.
Any chance to merge all these tasks into a single script?
Thank you