Below is a simplified snippet of my code:
@echo off
setlocal enabledelayedexpansion
for /f %%f in ('%pomFiles%') do (
findstr "var" %%f > nul
if errorlevel 0 if not errorlevel 1 (
cd "%%~dpf"
for /f "usebackq" %%i in ('%%~dpftree.out') do ( set size=%%~zi && echo !size!)
if !size! gtr 0 (
//do stuff
)
)
)
The !size! variable does not seem to be being set. If I do echo !size!, it prints !size!. How can I make sure !size! evaluates?