forked from golded-plus/golded-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgolded.bat
121 lines (95 loc) · 2.42 KB
/
golded.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@echo off
rem
rem This is Golded's run command file example.
rem
rem
SET flagpath=M:\flag
SET fastechopath=M:\fastecho
rem Flag to creates if netmail wrote
SET _NET_FLAG=%flagpath%\netmail.flg
rem Flag to creates if echomail wrote
SET _ECHO_FLAG=%flagpath%\echomail.flg
rem Flag to creates if localmail wrote
SET _LOCAL_FLAG=%flagpath%\locmail.flg
rem Command runs if messagebase is damaged
SET _REPAIRACT=%fastechopath%\feutil check
rem Command runs if messagebase indexes is damaged
SET _REBUILDACT=%fastechopath%\feutil index
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! ****
cd . >>%_NET_FLAG%
cd . >>%_LOCAL_FLAG%
Goto purge
:E_N__
Echo.
Echo **** New Echo and Netmail entered! ****
cd . >>%_NET_FLAG%
cd . >>%_ECHO_FLAG%
Goto purge
:E___L
Echo.
Echo **** New Echo and Local mail entered! ****
cd . >>%_ECHO_FLAG%
cd . >>%_LOCAL_FLAG%
Goto purge
:E____
Echo.
Echo **** New Echomail entered! ****
cd . >>%_ECHO_FLAG%
Goto purge
:__N_L
Echo.
Echo **** New Net and Local mail entered! ****
cd . >>%_NET_FLAG%
%_LOCAL_FLAG%
Goto purge
:__N__
Echo.
Echo **** New Netmail entered! ****
cd . >>%_NET_FLAG%
Goto purge
:____L
Echo.
Echo **** New Local mail entered! ****
cd . >>%_LOCAL_FLAG%
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. ‚ ®¡« á⨠"Trashcan" - ª®p§¨¥ ¤«ï 㤠«ñëå ¯¨á¥¬, 室ïâáï ª ª¨¥-â®
Echo ru. á®®¡é¥¨ï. Žç¨áâ¨âì ª®p§¨ã?
CHOICE /c:YN /T:N,05
IF ERRORLEVEL 2 goto Start
IF ERRORLEVEL 1 Del M:\SQUISH\TRASHCAN\*.msg
:End