07-23-2023, 12:58 AM
I need to copy a file x.dtsx from location a to location b.
If x.dtsx already exists in b then I need to rename x.dtsx to x_Standby.dtsx Then, after renaming copy x.dtsx to b
My current code looks like this:
if exists %1 rename %1 %(should be 1_standy.extension)
xcopy %1 %2
If x.dtsx already exists in b then I need to rename x.dtsx to x_Standby.dtsx Then, after renaming copy x.dtsx to b
My current code looks like this:
if exists %1 rename %1 %(should be 1_standy.extension)
xcopy %1 %2