怎么说没有全"你要覆盖"提示在批处理文件副本? [英] How to say no to all "do you want to overwrite" prompts in a batch file copy?

查看:179
本文介绍了怎么说没有全"你要覆盖"提示在批处理文件副本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,在命令提示符下复制将提示您覆盖已经在目标位置存在的文件。

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

您可以添加/ Y说是所有替换。

You can add "/Y" to say "Yes to all" replacements.

但是,你怎么能说全否?

But how can you say "No to all" ?

在换句话说,我希望一切都从一个目录,做拷贝的不可以已经存在于目标。

In other words, I want to copy everything from one directory that does not already exist in the target.

我看到的最接近的就是XCOPY参数仅在特定MOD-日期时间后,复制的东西。

The closest thing I see is the XCOPY argument to only copy things after a specific mod-datetime.

推荐答案

除非有这样一个场景,你的的希望现有的文件中自上次复制,为什么改变了复制源没有指定具体的日期不能使用与/ D XCOPY?

Unless there's a scenario where you'd not want to copy existing files in the source that have changed since the last copy, why not use XCOPY with /D without specifying a date?

这篇关于怎么说没有全"你要覆盖"提示在批处理文件副本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆