Code: Select all
set snfFrom=c:\Folder1\File1.txe
set snfTo=c:\Folder2\File2.txe
if exist %snfTo% goto mExist
copy %snfFrom% %snfTo%
goto mEx
:mExist
copy %snfTo%+%snfFrom% %snfTo%
:mEx
Code: Select all
set snfFrom=c:\Folder1\File1.txe
set snfTo=c:\Folder2\File2.txe
if exist %snfTo% goto mExist
copy %snfFrom% %snfTo%
goto mEx
:mExist
copy %snfTo%+%snfFrom% %snfTo%
:mEx