I'm trying to do a simple if like this
if %REGEDIT_HOME%=="" (
echo.
echo Forms6i not present
echo.
) else (
for /f "skip=1 tokens=3" %a in ('reg query %REGEDIT_HOME% > %LOGDIR%\tmp.txt') do (
echo. > nul
)
)
The problem is that since the REGEDIT_HOME is in fact null I get an error
) was unexpected at this time.