I am trying to compare two files (I cannot use the File Compare test because one of the files has to be dynamically created by the test itself).
My script is this:
Code: Select all
@echo off
FC c:\aaa.txt c:\bbb.txt > nul
IF %errorlevel% == 0 (echo ScriptRes:OK:%errorlevel%) Else (echo ScriptRes:Bad:%errorlevel%)
Code: Select all
[13:38:38] HostMonitor is going to execute "TestErrorlevel" script ...
[13:38:38] Script executed, correct result received:
----------
- Status: Bad
- Reply: -1
----------
Code: Select all
dir c:\aaa.txt > nul
What could it be?
TIA
Alex