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

前端 未结 7 1741
独厮守ぢ
独厮守ぢ 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:22

    Following command copy files and folder but not override file if already exist.

    xcopy "*.*" "C:\test\"  /s /y /d
    

提交回复
热议问题