|
|
Line 1: |
Line 1: |
− | '''@ECHO OFF''' | + | '''tvcli -cmd import_file -user meuemail@email.com -datamart 246 -file "c:\taticview\imp\planilha.xlsx" -wait -notifyshare''' |
− | '''call tvcli -cmd import_file -user jonathan@sadig.com -file "C:\Users\jonathan.SADIG\Documents\TaticView\Import Files\sales.xlsx" -datamart 674 -wait
| + | '''if errorlevel <> 0''' |
− | '''if %errorlevel% == 0 (
| + | '''Error notification by email''' |
− | '''echo "SALES updated successfully!"
| + | '''fi''' |
− | ''') else (
| |
− | '''echo "Problems updating SALES!"
| |
− | ''')
| |
− | '''call tvcli -cmd import_file -user jonathan@sadig.com -file "C:\Users\jonathan.Sadig\Documents\TaticView\Import Files\hr.xlsx" -datamart 673 -wait
| |
− | '''if %errorlevel% == 0 (
| |
− | '''echo "HR updated successfully!"
| |
− | ''') else (
| |
− | '''echo "Problems updating HR!"
| |
− | ''')'''
| |
Revision as of 17:39, 21 September 2017
tvcli -cmd import_file -user meuemail@email.com -datamart 246 -file "c:\taticview\imp\planilha.xlsx" -wait -notifyshare
if errorlevel <> 0
Error notification by email
fi