top of page

FAQ-1442
stopca_daily.bat

COMM ONE FAQ-1442
Settings for stopca_daily.bat Automation Script

TASKKILL SETTINGS FOR STOPCA_DAILY.BAT SCRIPT
The file stopca.bat is the script file that runs the call processing and report automation based on your automation settings.  The taskkill commands in that script make sure that all of the Comm One programs are closed before the call processing and report automation are run.

 

SAMPLE STOPCA.BAT SCRIPT

Here is a sample stopca.bat or stopca_daily script:

c:
cd\ca2021
taskkill /f /im ca21.exe
taskkill /f /im [nt_callproc]
taskkill /f /im toolbox21.exe
taskkill /f /im chk_ca21.exe
taskkill /f /im chk_ca21_auto.exe
taskkill /f /im mail_setup21.exe
taskkill /f /im auto_email21.exe
taskkill /f /im auto_detail_email21.exe
taskkill /f /im auto_summary_email21.exe
taskkill /f /im auto_summary21.exe
taskkill /f /im auto_detail21.exe
taskkill /f /im auto_archive21.exe
taskkill /f /im set_date_allcalls.exe
taskkill /f /im set_date_last7.exe
taskkill /f /im set_date_last14.exe
taskkill /f /im set_date_last21.exe
taskkill /f /im set_date_last30.exe
taskkill /f /im set_date_thismonth.exe
taskkill /f /im set_date_lastmonth.exe
taskkill /f /im set_date_today.exe
taskkill /f /im set_date_yesterday.exe
taskkill /f /im set_format_csv.exe
taskkill /f /im set_format_pdf.exe
taskkill /f /im set_format_xls.exe
taskkill /f /im set_email_user.exe
taskkill /f /im set_email_department.exe
taskkill /f /im set_email_specified.exe
taskkill /f /im set_email1.exe 
taskkill /f /im set_email2.exe 
taskkill /f /im set_email3.exe 
taskkill /f /im set_email4.exe 
taskkill /f /im set_email5.exe 
taskkill /f /im set_email6.exe 
taskkill /f /im set_email7.exe 
taskkill /f /im set_email8.exe 
taskkill /f /im set_email9.exe 
taskkill /f /im set_email10.exe
taskkill /f /im set_email_validation.exe

rem ****************************************************************
rem --- Restart Advanced Capture Running as a Service----------
rem ping 127.0.0.1
rem net stop AdvTCPIPDataLogger
rem ping 127.0.0.1
rem ping 127.0.0.1
rem net start AdvTCPIPDataLogger
rem --- END Restart Advanced Capture as a Service----------
rem ****************************************************************

rem ****************************************************************
rem --- Scripting SET Statements
rem set_date_allcalls.exe
rem set_date_last7.exe
rem set_date_last14.exe
rem set_date_last21.exe
rem set_date_last30.exe
rem set_date_thismonth.exe
rem set_date_lastmonth.exe
rem set_date_today.exe
rem set_date_yesterday.exe
rem set_format_csv.exe
rem set_format_pdf.exe
rem set_format_xls.exe
rem set_email_user.exe
rem set_email_department.exe
rem set_email_specified.exe
rem set_email1.exe [address]
rem set_email2.exe [address]
rem set_email3.exe [address]
rem set_email4.exe [address]
rem set_email5.exe [address]
rem set_email6.exe [address]
rem set_email7.exe [address]
rem set_email8.exe [address]
rem set_email9.exe [address]
rem set_email10.exe [address]
rem set_email_validation.exe [validation]
rem Check Indexes
chk_ca21_auto.exe
ping 127.0.0.1
rem Run Call Processing in Auto Mode
[nt_callproc] AUTO
ping 127.0.0.1

rem SET DATE TO TODAY
set_date_today.exe
ping 127.0.0.1

rem SET FORMAT TO PDF
set_format_pdf.exe
ping 127.0.0.1
rem Send Detail Email 
auto_detail_email21.exe
ping 127.0.0.1
rem Send Summary Email
auto_summary_email21.exe
ping 127.0.0.1
rem --- COMMAND LINE SYNTAX OPTIONS
rem --- AUTO_SUMMARY21.EXE [REPORT_TYPE] [DATE_RANGE] [DEPARTMENT] [FORMAT] [EMAIL]
rem ping 127.0.0.1
rem --- Summary Report for Single Department
rem auto_summary21.exe DEPARTMENT TODAY [department] PDF
rem ping 127.0.0.1
rem --- Summary Report to specified email address
rem auto_summary21.exe CUSTOM TODAY ALL PDF [email@email.com]
rem ping 127.0.0.1

rem **************************************************************
rem --- Archive Log Files for last 30 days
rem robocopy c:\ca2021\log_ip c:\ca2021\archive\logfiles *.log /minage:30 /move
rem **************************************************************
rem ping 127.0.0.1
taskkill /f /im ca21.exe
taskkill /f /im %callproc%
taskkill /f /im toolbox21.exe
taskkill /f /im chk_ca21.exe
taskkill /f /im chk_ca21_auto.exe
taskkill /f /im mail_setup21.exe
taskkill /f /im auto_email21.exe
taskkill /f /im auto_detail_email21.exe
taskkill /f /im auto_summary_email21.exe
taskkill /f /im auto_summary21.exe
taskkill /f /im auto_detail21.exe
taskkill /f /im auto_archive21.exe
taskkill /f /im set_date_allcalls.exe
taskkill /f /im set_date_last7.exe
taskkill /f /im set_date_last14.exe
taskkill /f /im set_date_last21.exe
taskkill /f /im set_date_last30.exe
taskkill /f /im set_date_thismonth.exe
taskkill /f /im set_date_lastmonth.exe
taskkill /f /im set_date_today.exe
taskkill /f /im set_date_yesterday.exe
taskkill /f /im set_format_csv.exe
taskkill /f /im set_format_pdf.exe
taskkill /f /im set_format_xls.exe
taskkill /f /im set_email_user.exe
taskkill /f /im set_email_department.exe
taskkill /f /im set_email_specified.exe
taskkill /f /im set_email1.exe 
taskkill /f /im set_email2.exe 
taskkill /f /im set_email3.exe 
taskkill /f /im set_email4.exe 
taskkill /f /im set_email5.exe 
taskkill /f /im set_email6.exe 
taskkill /f /im set_email7.exe 
taskkill /f /im set_email8.exe 
taskkill /f /im set_email9.exe 
taskkill /f /im set_email10.exe
taskkill /f /im set_email_validation.exe

Comm One Call Accounting Software

Technical Support

PO Box 759 | 1390 E Meadow Valley Dr

Draper, UT  84020

(800) 771-9182

support@commone.com

FAQ-1442 Daily Script stopca_daily.bat Settings

Posted: 02/02/2017

Updated: 02/13/2021

Author: Comm One Technical Support

bottom of page