如何在XCOPY命令中指定目录名称 [英] How to specify the directory name in XCOPY Command

查看:149
本文介绍了如何在XCOPY命令中指定目录名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在XCOPY参数中指定源目录名称。我正在尝试跟随,但它给出了错误。



setlocal enableextensions

set CopyPath = E:/ DialerTFS / PredictiveDialer



XCOPY CopyPath%\ AgentDetails \ AgentDetails \ Bin \Debug \ * .dll C:\ BuildProject\bash \%name%\ AgentDetails / s / e / h / Y





如果有想法,请分享。

How to specify the Source Directory name in the XCOPY arguments. I'm trying following but it gives error.

setlocal enableextensions
set CopyPath=E:/DialerTFS/PredictiveDialer

XCOPY CopyPath%\AgentDetails\AgentDetails\Bin\Debug\*.dll C:\BuildProject\bash\%name%\AgentDetails /s /e /h /Y


If Have idea, please share.

推荐答案

而不是CopyPath%应该是%CopyPath%,name没有定义,那么你会期待什么?

请参阅:

< a href =http://en.wikipedia.org/wiki/XCOPY> http://en.wikipedia.org/wiki/XCOPY [ ^ ],

http://technet.microsoft.com/en-us/library/cc771254.aspx [ ^ ]。



更好的是,请参阅系统上的xcopy文档:

Instead of " CopyPath%" should be "%CopyPath%", "name" is not defined, so what would you expect?
Please see:
http://en.wikipedia.org/wiki/XCOPY[^],
http://technet.microsoft.com/en-us/library/cc771254.aspx[^].

Better yet, see the xcopy documentation on your system:
xcopy /?





-SA


这篇关于如何在XCOPY命令中指定目录名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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