Does anybody knows how to incorporate a test file not empty in an agent procedure.

I found this but does not seem to work.

for %%R in (#agentTemp#\final_leases.txt) do if not %%~zR lss 1 do echo %%~zR >>>> #agentTemp#\file_not_empty.txt

rgds