]> git.saurik.com Git - apple/file_cmds.git/blob - file/magdir/msdos
file_cmds-60.tar.gz
[apple/file_cmds.git] / file / magdir / msdos
1
2 #------------------------------------------------------------------------------
3 # msdos: file(1) magic for MS-DOS files
4 #
5
6 # .BAT files (Daniel Quinlan, quinlan@yggdrasil.com)
7 0 string @echo\ off MS-DOS batch file text
8
9 # .EXE formats (Greg Roelofs, newt@uchicago.edu)
10 #
11 0 string MZ MS-DOS executable (EXE)
12 >24 string @ \b, OS/2 or Windows
13 >1638 string -lh5- \b, LHa SFX archive v2.13S
14 >7195 string Rar! \b, RAR self-extracting archive
15 #
16 # [GRR 950118: file 3.15 has a buffer-size limitation; offsets bigger than
17 # 8161 bytes are ignored. To make the following entries work, increase
18 # HOWMANY in file.h to 32K at least, and maybe to 70K or more for OS/2,
19 # NT/Win32 and VMS.]
20 # [GRR: some company sells a self-extractor/displayer for image data(!)]
21 #
22 >11696 string PK\003\004 \b, PKZIP SFX archive v1.1
23 >13297 string PK\003\004 \b, PKZIP SFX archive v1.93a
24 >15588 string PK\003\004 \b, PKZIP2 SFX archive v1.09
25 >15770 string PK\003\004 \b, PKZIP SFX archive v2.04g
26 >28374 string PK\003\004 \b, PKZIP2 SFX archive v1.02
27 #
28 # Info-ZIP self-extractors
29 # these are the DOS versions:
30 >25115 string PK\003\004 \b, Info-ZIP SFX archive v5.12
31 >26331 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption
32 # these are the OS/2 versions (OS/2 is flagged above):
33 >47031 string PK\003\004 \b, Info-ZIP SFX archive v5.12
34 >49845 string PK\003\004 \b, Info-ZIP SFX archive v5.12 w/decryption
35 # this is the NT/Win32 version:
36 >69120 string PK\003\004 \b, Info-ZIP NT SFX archive v5.12 w/decryption
37 #
38 # TELVOX Teleinformatica CODEC self-extractor for OS/2:
39 >49801 string \x79\xff\x80\xff\x76\xff \b, CODEC archive v3.21
40 >>49824 leshort =1 \b, 1 file
41 >>49824 leshort >1 \b, %u files
42
43 # .COM formats (Daniel Quinlan, quinlan@yggdrasil.com)
44 # Uncommenting only the first two lines will cover about 2/3 of COM files,
45 # but it isn't feasible to match all COM files since there must be at least
46 # two dozen different one-byte "magics".
47 #0 byte 0xe9 MS-DOS executable (COM)
48 #0 byte 0x8c MS-DOS executable (COM)
49 # 0xeb conflicts with "sequent" magic
50 #0 byte 0xeb MS-DOS executable (COM)
51 #0 byte 0xb8 MS-DOS executable (COM)
52
53 # miscellaneous formats
54 0 string LZ MS-DOS executable (built-in)
55 #0 byte 0xf0 MS-DOS program library data
56 #
57
58 # Popular applications
59 2080 string Microsoft\ Word\ 6.0\ Document %s
60 #
61 0 belong 0x31be0000 Microsoft Word Document
62 #
63 2080 string Microsoft\ Excel\ 5.0\ Worksheet %s
64 #
65 0 belong 0x00001a00 Lotus 1-2-3
66 >4 belong 0x00100400 wk3 document
67 >4 belong 0x02100400 wk4 document
68 >4 belong 0x07800100 fm3 or fmb document
69 >4 belong 0x07800000 fm3 or fmb document
70 #
71 0 belong 0x00000200 Lotus 1-2-3
72 >4 belong 0x06040600 wk1 document
73 >4 belong 0x06800200 fmt document