@ECHO off
PROMPT $p$g
rem verify on
dsksts 4
if errorlevel 4 call default.bat
dsksts 4
if errorlevel 4 goto error
PATH=c:\;c:\ms;
chkdsk c:/f <chkdsk.dat >nul
@if exist c:\*.chk call SYSERR.bat
chkdsk e:/f <chkdsk.dat >nul
@if exist e:\*.chk call NCFERR.bat
chkdsk d:/f <chkdsk.dat >nul
@if exist d:\*.chk call default.bat
:1
@if not exist d:\MMIBASE.INI goto a1
:2
@if not exist d:\GLOBAL.DAT goto a2
:3
@if not exist d:\PARAM.BIN goto a3
:4
@if not exist d:\PARAM.TXT goto a4
:5
@if not exist d:\OP_BAK.DAT goto a5
:6
@if not exist d:\EDMUSER.DAT goto a6
:7
@if not exist d:\MLCCONF.DAT goto a7
:8
@if not exist d:\EPCEDM.LAD goto a8
:9
@if not exist d:\EPCEDM.PAR goto a9
:10
@if not exist d:\EPCEDM.L88 goto a10
:11
@if not exist d:\MMI.DAT goto a11
:12
@if not exist d:\KEYTRACE.DAT goto a12
:13
@if not exist d:\ALARM.DAT goto a13
:14
@if not exist d:\TRACE.DAT goto a14
:15
@if not exist d:\CUTLOG.DAT goto a15
:16
@if not exist d:\ECODE.DAT goto a16
goto checkfinish
:a1
echo " D:\MMIBASE.INI is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\MMIBASE.INI d:\ /v
echo " MMIBASE.INI Restore finish !! "
goto 2
:a2
echo " D:\GLOBAL.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\GLOBAL.DAT d:\ /v
echo " GLOBAL.DAT Restore finish !! "
goto 3
:a3
echo " D:\PARAM.BIN is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\PARAM.BIN d:\ /v
echo " PARAM.BIN Restore finish !! "
goto 4
:a4
echo " D:\PARAM.TXT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\PARAM.TXT d:\ /v
echo " PARAM.TXT Restore finish !! "
goto 5
:a5
echo " D:\OP_BAK.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\OP_BAK.DAT d:\ /v
echo " OP_BAK.DAT Restore finish !! "
goto 6
:a6
echo " D:\EDMUSER.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\EDMUSER.DAT d:\ /v
echo " EDMUSER.DAT Restore finish !! "
goto 7
:a7
echo " D:\MLCCONF.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\MLCCONF.DAT d:\ /v
echo " MLCCONF.DAT Restore finish !! "
goto 8
:a8
echo " D:\EPCEDM.LAD is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\EPCEDM.LAD d:\ /v
echo " EPCEDM.LAD Restore finish !! "
goto 9
:a9
echo " D:\EPCEDM.PAR is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\EPCEDM.PAR d:\ /v
echo " EPCEDM.PAR Restore finish !! "
goto 10
:a10
echo " D:\EPCEDM.L88 is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\EPCEDM.L88 d:\ /v
echo " EPCEDM.L88 Restore finish !! "
goto 11
:a11
echo " D:\MMI.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\MMI.DAT d:\ /v
echo " MMI.DAT Restore finish !! "
goto 12
:a12
echo " D:\KEYTRACE.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\KEYTRACE.DAT d:\ /v
echo " KETRACE.DAT Restore finish !! "
goto 13
:a13
echo " D:\ALARM.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\ALARM.DAT d:\ /v
echo " ALARM.DAT Restore finish !! "
goto 14
:a14
echo " D:\TRACE.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\TRACE.DAT d:\ /v
echo " TRACE.DAT Restore finish !! "
goto 15
:a15
echo " D:\CUTLOG.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\CUTLOG.DAT d:\ /v
echo " CUTLOG.DAT Restore finish !! "
goto 16
:a16
echo " D:\ECODE.DAT is lost !! "
echo " Press input to restore !! "
pause >nul
copy c:\default\ECODE.DAT d:\ /v
echo " ECODE.DAT Restore finish !! "
:checkfinish
c:\ms\net start
c:\ms\NET USE * /DELETE
call d:\go.bat
append d:\
SET TEMP=f:\
SET WCUTDATA=d:\;c:\data;
ECHO ON
c:\main2k.exe
goto EXIT
:error
echo " Disk on Module failure !! Back up your NC-FILES !! "
echo " Please contact with your Agency !! "
echo " Press input to continue !! "
pause >nul
copy c:\default\*.* f:\
attrib -r f:\*.*
append f:\default
SET TEMP=f:\
c:\ms\net start
c:\ms\NET USE * /DELETE
call d:\go.bat
SET WCUTDATA=c:\data;
ECHO ON
c:\main2k.exe
:EXIT