批处理和shell执行指令自动选择Yes或No echo yes | xcopy ./*.dll ../bin 如果bin下已存在dll,会询问是否覆盖,需要输入yes或者no,加上echo yes则自动选择yes。