这看起来很简单,也许我只是忽略了正确的标志,但是我如何在一个命令中将文件从一个目录复制到另一个目录并在目标目录中重命名?这是我的命令:
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"
Run Code Online (Sandbox Code Playgroud)
每次都会提示我以下内容:
TestConnectionExternal\bin\Debug\whee.config是否在目标上指定文件名或目录名(F =文件,D =目录)?
我想压制这个提示; 答案永远是F.
我有一个简单的副本从脚本到我们的一个人丢失了距离我的桌子20公里的文件
在测试脚本时,如果我的文件shapes.atc是文件或文件夹,则会提示我
我可以告诉你它是一个文件,但我怎样才能将它自动复制到我的家伙需要只需点击完成的批处理
xcopy /s/y J:\"My Name"\"FILES IN TRANSIT"\JOHN20101126\"Missing file"\Shapes.atc C:\"Documents and Settings"\"His name"\"Application Data"\Autodesk\"AutoCAD 2010"\"R18.0"\enu\Support\Shapes.atc
Run Code Online (Sandbox Code Playgroud)