I am trying to place a file in a destination base folder and I would like to have the name of the file changed in the end. I am trying to accomplish everything with scripting but unsuccessful and looking for assistance. So I thought i could accomplish this is in two ways.
option confirm:yes-to-all
#Backup File to network Backup Folder
Load create:rt "C:\Synctest" "C:\SyncTest\Backup\%username%"
filter *_Filename.txt
select left.newer.files left.orphan.files
copy left->right
filter *_Filename.txt
select right.files
rename "*_Filename.txt" "*_Filename_%date%.txt"
Or the other way to maybe use copyto syntax and zip the file up with a name with a date in it. But this syntax did nothing for me...
I tried- copyto right path:relative "C:\SyncTest\Backup\%username%\Test_Filename.z ip" in the place of rename line above and it resulted in nothing outputted.
Also I tried to add %time% but that did not work because of the colon in the file name. Most users regional settings has this format set and I would like to know if there is another way to add time to the backup filename.
Assistance would be greatly appreciated. Please let me know when you have a second.
option confirm:yes-to-all
#Backup File to network Backup Folder
Load create:rt "C:\Synctest" "C:\SyncTest\Backup\%username%"
filter *_Filename.txt
select left.newer.files left.orphan.files
copy left->right
filter *_Filename.txt
select right.files
rename "*_Filename.txt" "*_Filename_%date%.txt"
Or the other way to maybe use copyto syntax and zip the file up with a name with a date in it. But this syntax did nothing for me...
I tried- copyto right path:relative "C:\SyncTest\Backup\%username%\Test_Filename.z ip" in the place of rename line above and it resulted in nothing outputted.
Also I tried to add %time% but that did not work because of the colon in the file name. Most users regional settings has this format set and I would like to know if there is another way to add time to the backup filename.
Assistance would be greatly appreciated. Please let me know when you have a second.
Comment