I want below code working..help me..
how i work code( for loop inside if statement ) ;
// Working
FOR /f "tokens=*" %%v In ('sed -n "/Version:/p" *.spec') DO ( call set "Value3=%%v" )
echo %Value3%
call set "Result3=%%Value3%:Version: =%%"
echo %Result3%
call set /a SPECFILE_VERSION3=%Result3%+%COUNT_NUMBER%
echo %SPECFILE_VERSION3%
// not working
if [%PLATFORM_VERSION%] == [2] (
FOR /f "tokens=*" %%v In ('sed -n "/Version:/p" *.spec') DO ( call set "Value3=%%v" )
echo %Value3%
call set "Result3=%%Value3%:Version: =%%"
echo %Result3%
call set /a SPECFILE_VERSION3=%Result3%+%COUNT_NUMBER%
echo %SPECFILE_VERSION3%
pause
)
not working log is echo not~~;
Aucun commentaire:
Enregistrer un commentaire