rem   cqm.bat

rem   Runs the CQM program


echo off
cls




rem ----------------------------------------------------------------------

c:
cd \cqm\scripts

start /w C:\cqm\scripts\cqm_medicine_soon_disposal.exe
start /w C:\cqm\scripts\cqm_medicine_disposal.exe

rem ----------------------------------------------------------------------





rem ----------------------------------------------------------------------

type c:\cqm\scripts\welcome.txt


start/w iexplore.exe C:\cqm\default.htm

rem ----------------------------------------------------------------------





cd \cqm\backup




rem ----------------------------------------------------------------------
rem roll existing zipped cqm zip files 

del c:\cqm\backup\cqm20.zip

copy c:\cqm\backup\cqm19.zip c:\cqm\backup\cqm20.zip
copy c:\cqm\backup\cqm18.zip c:\cqm\backup\cqm19.zip
copy c:\cqm\backup\cqm17.zip c:\cqm\backup\cqm18.zip
copy c:\cqm\backup\cqm16.zip c:\cqm\backup\cqm17.zip
copy c:\cqm\backup\cqm15.zip c:\cqm\backup\cqm16.zip
copy c:\cqm\backup\cqm14.zip c:\cqm\backup\cqm15.zip
copy c:\cqm\backup\cqm13.zip c:\cqm\backup\cqm14.zip
copy c:\cqm\backup\cqm12.zip c:\cqm\backup\cqm13.zip
copy c:\cqm\backup\cqm11.zip c:\cqm\backup\cqm12.zip
copy c:\cqm\backup\cqm10.zip c:\cqm\backup\cqm11.zip
copy c:\cqm\backup\cqm09.zip c:\cqm\backup\cqm10.zip

copy c:\cqm\backup\cqm08.zip c:\cqm\backup\cqm09.zip
copy c:\cqm\backup\cqm07.zip c:\cqm\backup\cqm08.zip
copy c:\cqm\backup\cqm06.zip c:\cqm\backup\cqm07.zip
copy c:\cqm\backup\cqm05.zip c:\cqm\backup\cqm06.zip
copy c:\cqm\backup\cqm04.zip c:\cqm\backup\cqm05.zip
copy c:\cqm\backup\cqm03.zip c:\cqm\backup\cqm04.zip
copy c:\cqm\backup\cqm02.zip c:\cqm\backup\cqm03.zip
copy c:\cqm\backup\cqm01.zip c:\cqm\backup\cqm02.zip
copy c:\cqm\backup\cqm0.zip c:\cqm\backup\cqm01.zip

del c:\cqm\backup\cqm0.zip

rem -------------------------------------------------------------------------




rem -------------------------------------------------------------------------

rem zip existing sop files into cqm0.zip

C:\cqm\scripts\pkzip -P c:\cqm\backup\cqm0.zip c:\cqm\rtfs\*.rtf c:\cqm\data\*.*

if exist c:\scout C:\cqm\scripts\pkzip -P c:\cqm\backup\cqm0.zip c:\scout\*.cqm c:\scout\*.log c:\scout\*.prn

if exist c:\dc C:\cqm\scripts\pkzip -P c:\cqm\backup\cqm0.zip c:\dc\*.cqm c:\dc\*.log c:\dc\*.prn

if exist c:\dc305 C:\cqm\scripts\pkzip -P c:\cqm\backup\cqm0.zip c:\dc305\*.cqm c:\dc305\*.log c:\dc305\*.prn


ren c:\cqm\backup\cqm0.zip cqm0.zip

if exist c:\scout\scout.key copy c:\cqm\backup\cqm0.zip c:\scout\cqm.mqz

if exist c:\dc\nondaily.key copy c:\cqm\backup\cqm0.zip c:\dc\cqm.mqz

if exist c:\dc305\nondaily.key copy c:\cqm\backup\cqm0.zip c:\dc305\cqm.mqz

rem -------------------------------------------------------------------------





Exit
