这看起来很简单,也许我只是忽略了正确的标志,但是我将如何在一个命令中将文件从一个目录复制到另一个目录并在目标目录中重命名它?这是我的命令:
if exist "bin\development\whee.config.example"
if not exist "TestConnectionExternal\bin\Debug\whee.config"
xcopy "bin\development\whee.config.example"
"TestConnectionExternal\bin\Debug\whee.config"
它每次都会提示我以下内容:
TestConnectionExternal\bin\Debug\whee.config 是否在目标上指定文件名或目录名(F = 文件,D = 目录)?
我想抑制这个提示;答案总是F
。