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

mmr*_*mmr 4 windows hudson xcopy

我的哈德森构建步骤中有一个Windows批处理命令,基本上是:

 xcopy /s *.* \\serverlocation\buildname\
Run Code Online (Sandbox Code Playgroud)

副本失败了:

'xcopy' is not recognized as an internal or external command, operable program or batch file.
Run Code Online (Sandbox Code Playgroud)

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

编辑:我的路径是

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Perforce;C:\Program Files\CVSNT;C:\Program Files\CVSNT\
Run Code Online (Sandbox Code Playgroud)

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

Chr*_*ung 7

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