2005-11-18 22:20:40 +00:00
|
|
|
|
@echo off
|
|
|
|
|
rem
|
|
|
|
|
rem This is Golded's run command file example.
|
|
|
|
|
rem
|
|
|
|
|
rem
|
2005-12-07 18:49:00 +00:00
|
|
|
|
SET flagpath=M:\flag
|
|
|
|
|
SET fastechopath=M:\fastecho
|
2005-11-18 22:20:40 +00:00
|
|
|
|
|
2005-12-07 18:49:00 +00:00
|
|
|
|
rem Flag to creates if netmail wrote
|
|
|
|
|
SET _NET_FLAG=%flagpath%\netmail.flg
|
2005-11-18 22:20:40 +00:00
|
|
|
|
|
2005-12-07 18:49:00 +00:00
|
|
|
|
rem Flag to creates if echomail wrote
|
|
|
|
|
SET _ECHO_FLAG=%flagpath%\echomail.flg
|
2005-11-18 22:20:40 +00:00
|
|
|
|
|
2005-12-07 18:49:00 +00:00
|
|
|
|
rem Flag to creates if localmail wrote
|
|
|
|
|
SET _LOCAL_FLAG=%flagpath%\locmail.flg
|
2005-11-18 22:20:40 +00:00
|
|
|
|
|
|
|
|
|
rem Command runs if messagebase is damaged
|
2005-12-07 18:49:00 +00:00
|
|
|
|
SET _REPAIRACT=%fastechopath%\feutil check
|
2005-11-18 22:20:40 +00:00
|
|
|
|
|
|
|
|
|
rem Command runs if messagebase indexes is damaged
|
2005-12-07 18:49:00 +00:00
|
|
|
|
SET _REBUILDACT=%fastechopath%\feutil index
|
2005-11-18 22:20:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
M:\GOLDED\GOLDED.EXE
|
|
|
|
|
|
|
|
|
|
If ErrorLevel 101 Goto ERROR
|
|
|
|
|
If ErrorLevel 100 Goto REBUILD
|
|
|
|
|
If ErrorLevel 008 Goto ERROR
|
|
|
|
|
If ErrorLevel 007 Goto E_N_L
|
|
|
|
|
If ErrorLevel 006 Goto E_N__
|
|
|
|
|
If ErrorLevel 005 Goto E___L
|
|
|
|
|
If ErrorLevel 004 Goto E____
|
|
|
|
|
If ErrorLevel 003 Goto __N_L
|
|
|
|
|
If ErrorLevel 002 Goto __N__
|
|
|
|
|
If ErrorLevel 001 Goto ____L
|
|
|
|
|
Goto _____
|
|
|
|
|
|
|
|
|
|
:ERROR
|
|
|
|
|
Echo.
|
|
|
|
|
Echo GoldED Error exit!
|
|
|
|
|
%_REPAIRACT%
|
|
|
|
|
Goto goldrun
|
|
|
|
|
|
|
|
|
|
:REBUILD
|
|
|
|
|
Echo.
|
|
|
|
|
Echo ERROR! Index files needs rebuilding!
|
|
|
|
|
%_REBUILDACT%
|
|
|
|
|
Goto GOLDRUN
|
|
|
|
|
|
|
|
|
|
:E_N_L
|
|
|
|
|
Echo.
|
|
|
|
|
Echo **** New Echo, Net and Local mail entered! ****
|
2005-12-07 18:49:00 +00:00
|
|
|
|
cd . >>%_NET_FLAG%
|
|
|
|
|
cd . >>%_LOCAL_FLAG%
|
2005-11-18 22:20:40 +00:00
|
|
|
|
Goto purge
|
|
|
|
|
|
|
|
|
|
:E_N__
|
|
|
|
|
Echo.
|
|
|
|
|
Echo **** New Echo and Netmail entered! ****
|
2005-12-07 18:49:00 +00:00
|
|
|
|
cd . >>%_NET_FLAG%
|
|
|
|
|
cd . >>%_ECHO_FLAG%
|
2005-11-18 22:20:40 +00:00
|
|
|
|
Goto purge
|
|
|
|
|
|
|
|
|
|
:E___L
|
|
|
|
|
Echo.
|
|
|
|
|
Echo **** New Echo and Local mail entered! ****
|
2005-12-07 18:49:00 +00:00
|
|
|
|
cd . >>%_ECHO_FLAG%
|
|
|
|
|
cd . >>%_LOCAL_FLAG%
|
2005-11-18 22:20:40 +00:00
|
|
|
|
Goto purge
|
|
|
|
|
|
|
|
|
|
:E____
|
|
|
|
|
Echo.
|
|
|
|
|
Echo **** New Echomail entered! ****
|
2005-12-07 18:49:00 +00:00
|
|
|
|
cd . >>%_ECHO_FLAG%
|
2005-11-18 22:20:40 +00:00
|
|
|
|
Goto purge
|
|
|
|
|
|
|
|
|
|
:__N_L
|
|
|
|
|
Echo.
|
|
|
|
|
Echo **** New Net and Local mail entered! ****
|
2005-12-07 18:49:00 +00:00
|
|
|
|
cd . >>%_NET_FLAG%
|
|
|
|
|
%_LOCAL_FLAG%
|
2005-11-18 22:20:40 +00:00
|
|
|
|
Goto purge
|
|
|
|
|
|
|
|
|
|
:__N__
|
|
|
|
|
Echo.
|
|
|
|
|
Echo **** New Netmail entered! ****
|
2005-12-07 18:49:00 +00:00
|
|
|
|
cd . >>%_NET_FLAG%
|
2005-11-18 22:20:40 +00:00
|
|
|
|
Goto purge
|
|
|
|
|
|
|
|
|
|
:____L
|
|
|
|
|
Echo.
|
|
|
|
|
Echo **** New Local mail entered! ****
|
2005-12-07 18:49:00 +00:00
|
|
|
|
cd . >>%_LOCAL_FLAG%
|
2005-11-18 22:20:40 +00:00
|
|
|
|
Goto purge
|
|
|
|
|
|
|
|
|
|
:_____
|
|
|
|
|
Echo.
|
|
|
|
|
Echo **** No new mail entered... ****
|
|
|
|
|
Goto purge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:purge
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rem Purge trashcan request.
|
|
|
|
|
|
|
|
|
|
If not Exist M:\SQUISH\TRASHCAN\*.msg Goto End
|
|
|
|
|
|
|
|
|
|
Echo.
|
|
|
|
|
Echo en. Area "Trashcan"- Recycle bin - contains some messages. Delete its?
|
|
|
|
|
Echo en.
|
|
|
|
|
Echo .
|
|
|
|
|
Echo ru. <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> "Trashcan" - <20><>p<EFBFBD><70><EFBFBD><EFBFBD> <20><><EFBFBD> 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ᥬ, <20><>室<EFBFBD><E5AEA4><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>-<2D><>
|
|
|
|
|
Echo ru. ᮮ<>饭<EFBFBD><E9A5AD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>p<EFBFBD><70><EFBFBD><EFBFBD>?
|
|
|
|
|
CHOICE /c:YN /T:N,05
|
|
|
|
|
IF ERRORLEVEL 2 goto Start
|
|
|
|
|
|
2005-12-07 18:49:00 +00:00
|
|
|
|
IF ERRORLEVEL 1 Del M:\SQUISH\TRASHCAN\*.msg
|
2005-11-18 22:20:40 +00:00
|
|
|
|
|
|
|
|
|
:End
|