-
Notifications
You must be signed in to change notification settings - Fork 8
/
HANDLERS.INI
85 lines (74 loc) · 2.84 KB
/
HANDLERS.INI
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
/// Handlers figure out what to do with what was loaded onto the system.
/// TDL comes with common file handlers, and the utilities to make them work.
/// You can add additional handlers to this file, up to a maximum of 255.
///
/// Handlers come in two types:
/// extraction: The file is an archive that needs extracting (zip, arc, etc.)
/// execution: The file can be executed (exe, com, bat, bas, pcx, txt, etc.)
///
/// Extraction handlers *extract* archives into cache directories.
/// Execution handlers *execute* whatever is found in a cache directory.
/// Usually this means programs, but you can "execute" any file based on its
/// extension. For example, you can "execute" a text file with an extension
/// of .TXT by using a text file viewer such as LIST.COM. If the same
/// handler should handle multiple extensions (for example, if you want to
/// use LIST to view both TXT and DOC files), you can specify this by
/// separating them with semicolons, just like a PATH statement.
///
/// Launcher templates use the following variables in the launcher= line:
///
/// Execution:
/// %d = directory file is located in
/// %s = file to execute (ie. file.ext)
/// Current directory will be switched to %d
/// %f = file to execute, fully-qualified (ie. c:\dir\file.ext)
/// Current dir will be the directory the helper program resides in.
///
/// Because %s and %f are both source variables, you cannot use %s and %f in
/// the same launcher= line. (If you don't understand this, use %s for
/// everything unless your launcher utility is a batch file.)
///
/// Extraction:
/// %s = source archive, fully-qualified
/// %d = destination for extracted files
///
[ZIP]
type=extraction
description=Compressed Archive (PKZIP)
; pkunzip's EMS and XMS support assumes it is not operating as a child
; process, and causes problems for the parent if called as such. This
; breaks TDL's swapping mechanism, so we disable EMS and XMS usage with
; the -+ and -- options. This should not cause any problems.
launcher=pkunzip.exe -+ -- -d %s %d
locations=utils;distro\utils;c:\utils\common
[EXE;COM]
type=execution
description=Executable Program
launcher=%s
[JPG]
type=execution
description=Graphics Viewer
launcher=pctview.bat %s
locations=utils\pictview
[SYX]
type=execution
description=MIDI Control
launcher=dump.exe %s
locations=utils
[BAT]
type=execution
description=DOS Batch File
launcher=command.com /c %s
[TXT;DOC;1ST]
type=execution
description=ASCII Text File
launcher=list.com %s
locations=utils;distro\utils
[???]
type=execution
description=Unknown File
launcher=4f.com %s
locations=utils
usermessage=No recognizable files were produced by the extraction phase. DOSSHELL will now run inside that directory so you can examine what was extracted (or confirm if nothing was extracted). Press ESC to leave LIST when done.
/// DO NOT REMOVE THIS LAST LINE:
[END]