我的 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\

这可能就是它从命令行工作的原因。

最佳答案

xcopy 在你的 system32 目录中;确保它在您的 PATH 中。

关于windows - 为什么 Hudson 不将 xcopy 识别为命令?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1133074/

10-09 03:13