【发布时间】:2010-11-11 02:38:05
【问题描述】:
我的 hudson 构建步骤中有一个 Windows 批处理命令,基本上是:
xcopy /s *.* \\serverlocation\buildname\
复制失败:
'xcopy' is not recognized as an internal or external command, operable program or batch file.
但是,xcopy 可以在命令行上使用(就像 copy 一样)。我需要做什么才能让 hudson 使用 xcopy?
编辑:我的路径是
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Perforce;C:\Program Files\CVSNT;C:\Program Files\CVSNT\
这可能是它从命令行运行的原因。
【问题讨论】: