How do I write a batch script that copies one directory to another, replaces old files?

前端 未结 5 515
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 09:59

I\'d like a batch script in Windows with which I can copy one directory to another. If this directory already exists, and then for each file that already exists in both with the

5条回答
  •  清歌不尽
    2021-02-01 10:36

    Have you considered using the "xcopy" command?

    The xcopy command will do all that for you.

提交回复
热议问题