I'm using a script to check whether a file size is zero or not. If it is zero some commands need to be run and it is not zero then some others need to run.
find "Unable" test.log 2> HSSnull1
for /F %%A in ("HSSnull1") do If %%~zA equ 0 (
echo "%DTSTMP% -----Import of Online Users is sucessful-----" >> %SCRIPTLOG%
echo "%DTSTMP% -------------- End of Importing Online Users --------------" >> %SCRIPTLOG%
echo "%DTSTMP% >>>>> ERROR: Provisioning of Online Users failed!" >> %SCRIPTLOG%
But i'm getting all the lines as output, i.e. the script is not checking for the else condition.
the file size is 0KB and i'm getting this line also in the log ERROR: Provisioning of Online Users failed!"
Can sombody please help me with this.