Writing text on success in a batch file


hi ,

i running basic batch file declare errorlevel @ end of command .

i have text instead 1 or 0 (failure or success), know how ??? maybe instead %errorlevel%  ??

the batch file :

dtexec /file "m:\ssisprojects\dwh\alm_daily\wmfd2537.dtsx "  /decrypt 1234 /configfile "m:\ssisprojects\dwh\alm_daily\alm_daily_common_config.dtsconfig" /maxconcurrent " -1 " /checkpointing off  /reporting ewcdi  >  m:\ssisprojects\dwh\alm_daily\ecsysout\alm_daily_2537.txt
echo %errorlevel%

thanks advance ,

david .

if errorlevel==1 echo failure

echo success

computer hope (batch files)

rob van der woude's site


todd mcdermid's blog talk me on


SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'