1@echo off
2rem
3rem This is Golded's run command file example.
4rem
5rem
6SET flagpath=M:\flag
7SET fastechopath=M:\fastecho
8
9rem Flag to creates if netmail wrote
10SET _NET_FLAG=%flagpath%\netmail.flg
11
12rem Flag to creates if echomail wrote
13SET _ECHO_FLAG=%flagpath%\echomail.flg
14
15rem Flag to creates if localmail wrote
16SET _LOCAL_FLAG=%flagpath%\locmail.flg
17
18rem Command runs if messagebase is damaged
19SET _REPAIRACT=%fastechopath%\feutil check
20
21rem Command runs if messagebase indexes is damaged
22SET _REBUILDACT=%fastechopath%\feutil index
23
24
25M:\GOLDED\GOLDED.EXE
26
27If ErrorLevel 101 Goto ERROR
28If ErrorLevel 100 Goto REBUILD
29If ErrorLevel 008 Goto ERROR
30If ErrorLevel 007 Goto E_N_L
31If ErrorLevel 006 Goto E_N__
32If ErrorLevel 005 Goto E___L
33If ErrorLevel 004 Goto E____
34If ErrorLevel 003 Goto __N_L
35If ErrorLevel 002 Goto __N__
36If ErrorLevel 001 Goto ____L
37                  Goto _____
38
39:ERROR
40    Echo.
41    Echo GoldED Error exit!
42    %_REPAIRACT%
43    Goto goldrun
44
45:REBUILD
46    Echo.
47    Echo ERROR! Index files needs rebuilding!
48    %_REBUILDACT%
49    Goto GOLDRUN
50
51:E_N_L
52    Echo.
53    Echo **** New Echo, Net and Local mail entered! ****
54    cd . >>%_NET_FLAG%
55    cd . >>%_LOCAL_FLAG%
56    Goto purge
57
58:E_N__
59    Echo.
60    Echo **** New Echo and Netmail entered! ****
61    cd . >>%_NET_FLAG%
62    cd . >>%_ECHO_FLAG%
63    Goto purge
64
65:E___L
66    Echo.
67    Echo **** New Echo and Local mail entered! ****
68    cd . >>%_ECHO_FLAG%
69    cd . >>%_LOCAL_FLAG%
70    Goto purge
71
72:E____
73    Echo.
74    Echo **** New Echomail entered! ****
75    cd . >>%_ECHO_FLAG%
76    Goto purge
77
78:__N_L
79    Echo.
80    Echo **** New Net and Local mail entered! ****
81    cd . >>%_NET_FLAG%
82    %_LOCAL_FLAG%
83    Goto purge
84
85:__N__
86    Echo.
87    Echo **** New Netmail entered! ****
88    cd . >>%_NET_FLAG%
89    Goto purge
90
91:____L
92    Echo.
93    Echo **** New Local mail entered! ****
94    cd . >>%_LOCAL_FLAG%
95    Goto purge
96
97:_____
98    Echo.
99    Echo **** No new mail entered... ****
100    Goto purge
101
102
103:purge
104
105
106rem Purge trashcan request.
107
108If not Exist M:\SQUISH\TRASHCAN\*.msg Goto End
109
110Echo.
111Echo en. Area "Trashcan"- Recycle bin - contains some messages. Delete its?
112Echo en.
113Echo   .
114Echo ru. � ������ "Trashcan" - ��p���� ��� 㤠���� ��ᥬ, ��室���� �����-�
115Echo ru. ᮮ�饭��. ������ ��p����?
116CHOICE /c:YN /T:N,05
117IF ERRORLEVEL 2 goto Start
118
119IF ERRORLEVEL 1 Del M:\SQUISH\TRASHCAN\*.msg
120
121:End
122