Is there anyway to do the below without delayed expansion (one line, broken for readability)?
%comspec% /v:on /c %windir%\System32\reg.exe import c:\temp\test.reg &
if !errorlevel! neq 0 pause
If it were an echo, I know that call
can be used, but doesn't seem to be available for use with the if
.