We have a little problem with a simple script.
When we start the script in the command line, then we have no problems,
within in the script manager, we get the following error:
Command: cmd /c D:\Hostmonitor\Scripts\tftpservice_test.cmd
'C:\Windows\System32\TFTP.exe' is not recognized as an internal or external command,
operable program or batch file.
This would be the simple script:
Code: Select all
@ECHO OFF
SET DHCPCLUSTER=xxx
SET TFTPNODEA=some IP
SET TFTPNODEB=some IP
SET TFTPACTIVENODE=%TFTPNODEA%
IF EXIST %~n0.conf SET /P TFTPACTIVENODE=<%~n0.conf
C:\Windows\System32\TFTP.exe -i %TFTPACTIVENODE% GET pxeboot.0 && (DEL /F pxeboot.0 & ECHO scriptres:Ok:%TFTPACTIVENODE% GOTO :EOF)
HM v 8.84 on Windows Server 2008 R2 (64 bit)
Thanks in advance
Martin