加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

windows – 为什么Hudson不将xcopy识别为命令?

发布时间:2020-12-14 04:01:14 所属栏目:Windows 来源:网络整理
导读:我的哈德森构建步骤中有一个 Windows批处理命令基本上是: xcopy /s *.* serverlocationbuildname 副本失败了: 'xcopy' is not recognized as an internal or external command,operable program or batch file. 但是,xcopy可以在命令行上使用(就像复制
我的哈德森构建步骤中有一个 Windows批处理命令基本上是:

xcopy /s *.* serverlocationbuildname

副本失败了:

'xcopy' is not recognized as an internal or external command,operable program or batch file.

但是,xcopy可以在命令行上使用(就像复制一样).我需要做些什么来使哈德森使用xcopy?

编辑:我的路径是

PATH=C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:Program FilesPerforce;C:Program FilesCVSNT;C:Program FilesCVSNT

这可能是它从命令行运行的原因.

解决方法

xcopy位于system32目录中;确保它在你的PATH中.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读