|
a |
|
b/mit-bih-arrhythmia-database-1.0.0/mitdbdir/src/printdir.bat |
|
|
1 |
@echo off |
|
|
2 |
: file: printdir.bat G. Moody 11 August 1992 |
|
|
3 |
|
|
|
4 |
: MS-DOS batch file for printing the MIT-BIH Arrhythmia Database Directory |
|
|
5 |
|
|
|
6 |
: Copyright(C) Massachusetts Institute of Technology 1992. All rights reserved. |
|
|
7 |
|
|
|
8 |
echo If you have a PostScript printer, you can use this program to print a copy |
|
|
9 |
echo of the MIT-BIH Arrhythmia Database Directory on it. It will take about 10 |
|
|
10 |
echo hours to print the entire 200-page directory. Make sure that the current |
|
|
11 |
echo drive contains the MIT-BIH Arrhythmia Database CD-ROM, and that the TEMP |
|
|
12 |
echo variable names a writable directory with at least 15 Mb free. The current |
|
|
13 |
echo value of TEMP is %TEMP%. |
|
|
14 |
|
|
|
15 |
echo If you want to do anything other than print the entire directory, see the |
|
|
16 |
echo UNIX 'makefile' in this directory; it can be used with Microsoft or |
|
|
17 |
echo Borland 'make' with only minor changes. |
|
|
18 |
pause |
|
|
19 |
|
|
|
20 |
echo This program needs to change the DB and PATH variables. When it finishes, |
|
|
21 |
echo you may wish to reset them to their current values, which are |
|
|
22 |
echo DB=%DB% |
|
|
23 |
echo PATH=%PATH% |
|
|
24 |
pause |
|
|
25 |
|
|
|
26 |
: DB gets cleared out, so that 'psfd' and 'pschart' use their built-in default |
|
|
27 |
: DB paths to find the records. This works only if the CD-ROM is in the |
|
|
28 |
: current drive. |
|
|
29 |
set DB= |
|
|
30 |
|
|
|
31 |
: The 'bin' directory of the CD-ROM goes at the front of the new PATH, so that |
|
|
32 |
: the correct versions of 'gzip', 'pschart', and 'psfd' will be found. |
|
|
33 |
set PATH=\bin;%PATH% |
|
|
34 |
|
|
|
35 |
echo OK, let's see if your printer can print a test page. This may take |
|
|
36 |
echo up to 5 minutes ... when it's done, you should get a plot with a 12-second |
|
|
37 |
echo ECG strip at the top of a (mostly empty) page. If you get lots of text |
|
|
38 |
echo instead, you may need to modify this batch file. CHECK THE OUTPUT BEFORE |
|
|
39 |
echo CONTINUING. |
|
|
40 |
|
|
|
41 |
pschart -b 5 -e -g -l -r -R -V -n 999 -T "Test Page" extest >%TEMP%\ex.ps |
|
|
42 |
print %TEMP%\ex.ps |
|
|
43 |
pause |
|
|
44 |
|
|
|
45 |
echo Now printing the directory ... |
|
|
46 |
|
|
|
47 |
: outside cover |
|
|
48 |
copy cover.z %TEMP% |
|
|
49 |
gzip -d %TEMP%\cover |
|
|
50 |
print %TEMP%\cover |
|
|
51 |
|
|
|
52 |
: title page, copyright notice |
|
|
53 |
copy title.z %TEMP% |
|
|
54 |
gzip -d %TEMP%\title |
|
|
55 |
print %TEMP%\title |
|
|
56 |
|
|
|
57 |
: table of contents |
|
|
58 |
copy contents.z %TEMP% |
|
|
59 |
gzip -d %TEMP%\contents |
|
|
60 |
print %TEMP%\contents |
|
|
61 |
|
|
|
62 |
: foreword, introduction, table of symbols |
|
|
63 |
copy intro.z %TEMP% |
|
|
64 |
gzip -d %TEMP%\intro |
|
|
65 |
print %TEMP%\intro |
|
|
66 |
|
|
|
67 |
: introduction to section of full disclosures |
|
|
68 |
copy fdtext.z %TEMP% |
|
|
69 |
gzip -d %TEMP%\fdtext |
|
|
70 |
print %TEMP%\fdtext |
|
|
71 |
|
|
|
72 |
: annotated full disclosure plots |
|
|
73 |
: If disk space is low, you might try sending the output directly to PRN |
|
|
74 |
psfd -b 5 -e -g -l -R -V -x -1 -n 2 -T "MIT-BIH Arrhythmia Database" fdlist >%TEMP%\fd.ps |
|
|
75 |
print %TEMP%\fd.ps |
|
|
76 |
|
|
|
77 |
: introduction to section of example strips |
|
|
78 |
copy extext.z %TEMP% |
|
|
79 |
gzip -d %TEMP%\extext |
|
|
80 |
print %TEMP%\extext |
|
|
81 |
|
|
|
82 |
: annotated example strips |
|
|
83 |
: If disk space is low, you might try sending the output directly to PRN |
|
|
84 |
pschart -b 5 -e -g -l -r -R -V -n 99 -T Examples exlist >%TEMP%\ex.ps |
|
|
85 |
print %TEMP%\ex.ps |
|
|
86 |
|
|
|
87 |
: demographic and statistical summaries |
|
|
88 |
copy notes.z %TEMP% |
|
|
89 |
gzip -d %TEMP%\notes |
|
|
90 |
print %TEMP%\notes |
|
|
91 |
|
|
|
92 |
: tables of beats and rhythms |
|
|
93 |
copy tables.z %TEMP% |
|
|
94 |
gzip -d %TEMP%\tables |
|
|
95 |
print %TEMP%\tables |
|
|
96 |
|
|
|
97 |
: index of full disclosures, examples, notes |
|
|
98 |
copy index.z %TEMP% |
|
|
99 |
gzip -d %TEMP%\index |
|
|
100 |
print %TEMP%\index |
|
|
101 |
|
|
|
102 |
echo The entire directory has now been printed. Temporary files will be |
|
|
103 |
echo removed from %TEMP% next. |
|
|
104 |
pause |
|
|
105 |
|
|
|
106 |
del %TEMP%\cover |
|
|
107 |
del %TEMP%\title |
|
|
108 |
del %TEMP%\contents |
|
|
109 |
del %TEMP%\intro |
|
|
110 |
del %TEMP%\fdtext |
|
|
111 |
del %TEMP%\fd.ps |
|
|
112 |
del %TEMP%\extext |
|
|
113 |
del %TEMP%\ex.ps |
|
|
114 |
del %TEMP%\notes |
|
|
115 |
del %TEMP%\tables |
|
|
116 |
del %TEMP%\index |