How to say no to all “do you want to overwrite” prompts in a batch file copy?

后端 未结 14 1278
感动是毒
感动是毒 2020-12-23 11:36

By default, copying from the command prompt will prompt you to overwrite files that already exist in the target location.

You can add \"/Y\" to say \"Yes to all\" re

14条回答
  •  轮回少年
    2020-12-23 11:54

    Adding the switches for subdirectories and verification work just fine. echo n | xcopy/-Y/s/e/v c:\source*.* c:\Dest\

提交回复
热议问题