I'm trying to conditionally run an exe from a batch file conditionally upon another exe executing successfully.
I've tried a few different combinations of IF and ERRORLEVEL but none seem to work
"......TeamBuildTypesCurrent BranchDatabaseUpdate.exe" -s localhostsql2008r2
IF %ERRORLEVEL% 1(
"......TeamBuildTypesCurrent BranchDatabaseUpdate.exe" -s localhostsql2008
)
Pause
Gives me the error
1( was unexpected at this time.
Where am I going wrong here?
See Question&Answers more detail:os