我需要将文件x.dtsx从位置a复制到位置b.
如果b中已存在x.dtsx,那么我需要将x.dtsx重命名为x_Standby.dtsx然后,将x.dtsx重命名为b后
我当前的代码如下所示:
if exists %1 rename %1 %(should be 1_standy.extension) xcopy %1 %2
dos batch-file batch-rename batch-processing
batch-file ×1
batch-processing ×1
batch-rename ×1
dos ×1