Having XCopy copy a file and not overwrite the previous one if it exists (without prompting)

前端 未结 7 1773
独厮守ぢ
独厮守ぢ 2021-01-01 11:50

I\'m sending a commands to a remote computer in order to have it copy a file. I want the file to be copied, but not to overwrite the previous file with the same name (if it

7条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 12:20

    You can also use the replace command. It has two modes: to add files that don't exist there or replace files that do exist. You want the previous mode:

    replace   /A
    

提交回复
热议问题