REM Daily Batch for Fourth Shift
rem E:\FShift\cabsauto\timeout 14400
rem E:\FShift\cabsauto\timeout 7200
rem E:\FShift\cabsauto\timeout 7200
rem E:\FShift\cabsauto\timeout 7200
rem E:\FShift\cabsauto\timeout 3600
REM 03-14-03 by Kim Doan
Rem Turning off Visibar
Rem
copy m:\mfgsys\vbdown.bak m:\mfgsys\vbdown.now
E:\FShift\cabsauto\timeout 60
rem net stop Fourth Shift lockserver
E:\FShift\cabsauto\timeout 15
rem net start Fourth Shift lockserver
REM
net stop FINmr (Fourth Shift SQL Service)
net stop MAINmr (Fourth Shift SQL Service)
net stop Fourth Shift Lockserver
net stop Computer Browser
rem net stop Server
rem net start Server
net start Computer Browser
net start Fourth Shift Lockserver
net start FINmr (Fourth Shift SQL Service)
net start MAINmr (Fourth Shift SQL Service)
REm
E:\FShift\cabsauto\timeout 30
Rem
Rem Setting the current date in the Fourth Shift Config
REM
set fscfg=m:\mfgsys\fs.cfg
m:\fs_apps\setcfg N0 DT_TODAY={TODAY}
REM
Copy m:\mfgsys\dly.log e:\fsbackups\dly_bef
copy m:\xport\*.* y:\fsbackups\xport_be
copy m:\mfgsys\archive\*.fil e:\fsbackups\dly_bef
del m:\mfgsys\dly.log
del m:\dailyrpt\ovar03.old
copy m:\mfgsys\ovar03dly.pdf m:\dailyrpt\ovar03.old
del m:\dailyrpt\ovar05.old
copy m:\mfgsys\ovar05dly.pdf m:\dailyrpt\ovar05.old
del m:\dailyrpt\ovar07.old
copy m:\mfgsys\ovar07dly.pdf m:\dailyrpt\ovar07.old
del m:\dailyrpt\ovar08.old
copy m:\mfgsys\ovar08dly.pdf m:\dailyrpt\ovar08.old
del m:\dailyrpt\posr25.old
copy m:\mfgsys\posr25dly.rtf m:\dailyrpt\posr25.old
del m:\dailyrpt\apmc16.old
copy m:\mfgsys\apmc16dly.rtf m:\dailyrpt\apmc16.old
del m:\dailyrpt\glmc17.old
copy m:\mfgsys\glmc17dly.rtf m:\dailyrpt\glmc17.old
del m:\dailyrpt\glau50.old
copy m:\mfgsys\glau50dly.rtf m:\dailyrpt\glau50.old
del m:\dailyrpt\lexp53.old
copy m:\mfgsys\lexp53dly.rtf m:\dailyrpt\lexp53.old
del m:\dailyrpt\lexp54.old
copy m:\mfgsys\lexp54dly.rtf m:\dailyrpt\lexp54.old
del m:\dailyrpt\ihir12.old
copy m:\mfgsyst\ihir12dly.rtf m:\dailyrpt\ihir12.old
REM
REM Starting the Lock Server
Rem
REM Net Start Lockserver
REM
REM E:\FShift\cabsauto\timeout 30
REM
fsguiapp.exe -cm:\mfgsys\fs.cfg -iAAA{TAB}y2k99{CR}bexe{ESC}BKF{CR}
REM
E:\FShift\cabsauto\timeout 10
REM
fsguiapp.exe -cm:\mfgsys\fs.cfg -iAAA{TAB}y2k99{CR}bexe{ESC}OV1{CR}
REM
E:\FShift\cabsauto\timeout 10
REM
fsguiapp.exe -cm:\mfgsys\fs.cfg -iAAA{TAB}y2k99{CR}bexe{ESC}OV2{CR}
REM
E:\FShift\cabsauto\timeout 10
REM
fsguiapp.exe -cm:\mfgsys\fs.cfg -iAAA{TAB}y2k99{CR}bexe{ESC}OV3{CR}
REM
E:\FShift\cabsauto\timeout 10
REM
fsguiapp.exe -cm:\mfgsys\fs.cfg -iAAA{TAB}y2k99{CR}bexe{ESC}DLY{CR}
REM
E:\FShift\cabsauto\timeout 10
REM
fsguiapp.exe -cm:\mfgsys\fs.cfg -iAAA{TAB}y2k99{CR}bexe{ESC}DLX{CR}
REM
E:\FShift\cabsauto\timeout 10
REM
Rem Backing up the daily After
Rem
del e:\fsbackups\dly_aft\*.* /q
del e:\fsbackups\xport_af\*.* /q
copy m:\mfgsys\*.fil e:\fsbackups\dly_aft
copy m:\mfgsys\*.dat e:\fsbackups\dly_aft
copy m:\mfgsys\*.his e:\fsbackups\dly_aft
copy m:\mfgsys\mod* e:\fsbackups\dly_aft
Copy m:\mfgsys\log.dly e:\fsbackups\dly_aft
copy m:\xport\*.* e:\fsbackups\xport_af
copy m:\mfgsys\archive\*.fil e:\fsbackups\dly_aft
Rem
E:\FShift\cabsauto\timeout 30
Rem
Rem Starting Visibar
Rem
del m:\mfgsys\vbdown.now
Rem
Rem Backing up the Report Server
Rem
rem ******* Print Nightly Report ***********
rem *** Printing Accounting reports ********
rem ****************************************
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\ovar03.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\ovar04.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\ovar05.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\ovar06.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\ovar07.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\ovar08.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\posr25dly.rtf /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\lexp54.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\ihir18.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\apmc16.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\glmc17.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpt\glau50.dly /print
rem m:\mfgsys\system\fsprint.exe m:\dailyrpts\lexp53.dly /print
********* Finished Printing ****************
fsguiapp.exe -cm:\mfgsys\fs.cfg -iAAA{TAB}y2k99{CR}bexe{ESC}EB1{CR}
rem m:\mfgsys\msdefs\simplebackup.bat fs.dat si-apps -D fsbdmr -U SA -P
exit