|
|
(3 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | '''tvcli -cmd import_file -user meuemail@email.com -datamart 246 -file "c:\taticview\imp\planilha.xlsx" -wait -notifyshare''' | + | '''@ECHO OFF''' |
− | '''if errorlevel <> 0'''
| + | '''call C:\TaticView\tvcli -cmd import_file -user my@email.com -file "C:\TaticView\Import Files\sales.xlsx" -datamart 674 -wait |
− | '''Error notification by email'''
| + | '''if %errorlevel% == 0 ( |
− | '''fi'''
| + | '''echo SALES updated successfully! |
| + | ''') else ( |
| + | '''echo Problems updating SALES! |
| + | ''') |
| + | '''call C:\TaticView\tvcli -cmd import_file -user my@email.com -file "C:\TaticView\Import Files\hr.xlsx" -datamart 673 -wait |
| + | '''if %errorlevel% == 0 ( |
| + | '''echo HR updated successfully! |
| + | ''') else ( |
| + | '''echo Problems updating HR! |
| + | ''')''' |
Latest revision as of 19:12, 16 July 2021
@ECHO OFF
call C:\TaticView\tvcli -cmd import_file -user my@email.com -file "C:\TaticView\Import Files\sales.xlsx" -datamart 674 -wait
if %errorlevel% == 0 (
echo SALES updated successfully!
) else (
echo Problems updating SALES!
)
call C:\TaticView\tvcli -cmd import_file -user my@email.com -file "C:\TaticView\Import Files\hr.xlsx" -datamart 673 -wait
if %errorlevel% == 0 (
echo HR updated successfully!
) else (
echo Problems updating HR!
)