home *** CD-ROM | disk | FTP | other *** search
- ;
- ; EDDY.USE
- ;
- ; This file is an example, illustrating how the EDDY.USE file may be
- ; set up to define:
- ;
- ; 1) Programs to be executed by EDDY in response to the "Point-n-Shoot"
- ; commands - [Shift+F9] and [Shift+^F9]. Refer to EDDY.DOC, Section
- ; 14.1 for details.
- ;
- ; 2) Printer control strings, to be sent to your printer in response to
- ; the [Alt+9] command. Refer to EDDY.DOC, Section 14.3 for details.
- ;
- ; The point-n-shoot commands ("associations") come first in the file.
- ; After these, there is a section where printer control strings may be
- ; defined for your printer. This section starts with a line containing
- ; "[printer]" (without the quotes).
-
- ; You should build your own EDDY.USE file (with any editor or word
- ; processor that can create ASCII-only text files), to define the
- ; types of files and the programs you use most frequently, and the
- ; printer commands appropriate for your printer(s).
- ;
- ; Lines beginning with a semi-colon are COMMENTS ONLY, ignored by EDDY.
- ; They are included here to only clarify the examples. Command lines
- ; have a leading blank, for readability only - the blank isn't required.
- ;
- ; The lines containing "Example n" are used to cross reference from the
- ; more detailed explanations in EDDY.DOC, Section 14.1.
- ;
- ;----------------------------- Example 1 -----------------------------
- ; If you want to associate a program with subdirectories, use
- ; "<DIR>" instead of a file specification. (Although, if you feel
- ; you need such a program when EDDY is available, either you're
- ; not familiar with the full range of capabilities EDDY offers,
- ; or you probably have a requirement that would be a candidate
- ; for an upcoming release of EDDY; if so, please let me know.)
- | <DIR> C:\UTIL\DIRPROG %w\%f %t
- ;
- ;----------------------------- Example 2 -----------------------------
- ; The following entries assume the "%EDIT%" environment variable
- ; is set to the path for the text editor. Use the editor, with
- ; different key profiles, depending on file extension.
-
- *.AS? %EDIT%\E /P%EDIT%\ME.PRO %
- *.EQU %EDIT%\E /P%EDIT%\ME.PRO %
- *.MAC %EDIT%\E /P%EDIT%\ME.PRO %
- *.STR %EDIT%\E /P%EDIT%\ME.PRO %
- *.CPP %EDIT%\E /P%EDIT%\CP.PRO %
- *.C %EDIT%\E /P%EDIT%\CE.PRO %
- *.H %EDIT%\E /P%EDIT%\CP.PRO %
- *.H %EDIT%\E /P%EDIT%\CE.PRO %
-
- ; NOTE: For compatibility with earlier versions, a single "%", with a
- ; space on either side of it, is treated the same as "%f".
- ;
- ;----------------------------- Example 3 -----------------------------
- ; In the following lines, a "|" in the first position means "pause
- ; after executing" to allow review of screen display before control
- ; is returned to EDDY.
- ;
- ; Pressing [Down] on a .ZIP file entry displays the following...
- ; ...commands, in succession:
- *.ZIP X:\UTIL\PKUNZIP -d %f %@
- | *.ZIP X:\UTIL\PKZIP -%@vm %f
- *.ZIP X:\UTIL\PKZIP -exof%@ %f
- *.ZIP X:\UTIL\PKZDATE %f
-
- ;----------------------------- Example 4 -----------------------------
- ; The following entries assume the "DOS" environment variable is
- ; set to the path for MS DOS commands. Use 'View' option for
- ; other (non-ZIP) compressed files...
- | *.LZH X:\UTIL\LHA V %f | %DOS%\MORE.COM
- | *.ARJ X:\UTIL\ARJ V %f | %DOS%\MORE.COM
- | *.ARC X:\UTIL\PKARC V %f | %DOS%\MORE.COM
- ; This also illustrates the use of "piping" with EDDY.USE. A "|"
- ; within the command string (as opposed to one in the modifier
- ; field -- which means "pause") is the normal DOS pipe symbol.
-
- ;----------------------------- Example 5 -----------------------------
- ; Assume "EXE" is self-extracting archive. If not, why use
- ; [Shift+F9]? -- [Alt+F9] would be more normal.
- | *.EXE X:\UTIL\FV V %f
- ;
- ;----------------------------- Example 6 -----------------------------
- ; Use Canyon State Systems' file viewing program on .GIF files
- *.GIF X:\ETC\PICS\VIEWERS\2SHOW\2SHOW %f
- ;
- ;----------------------------- Example 7 -----------------------------
- ; Don't use the following command with [Shift+^F9] (because of "^"
- ; in the modifier field):
- ^ *.LST %DOS%\PRINT %f
- ;
- ;----------------------------- Example 8 -----------------------------
- ; After defining all the associations you want for various file
- ; types, you'll usually want to define a default for any other
- ; types of files (*.*).
- ;
- ; Specify file types that should NOT be used when matching is based
- ; on "*.*" (in this case, common non-text file types):
- # COM,EXE,DLL,BIN,OBJ,DRV,VBX,BMP,GRP,ICO,PIF,WAV,MOD,FO?,TTF
- ; These exclusions stay in effect until another "#" line is used.
- ;
- ;----------------------------- Example 9 -----------------------------
- ; Command to process any files not explicitly defined in Examples
- ; 1-7, EXCEPT as described above in Example 8:
- *.* %EDIT%\E /P%EDIT%\WP.PRO %f
- ;
- ;----------------------------- Example 10 ----------------------------
- ; An alternative to Example 9, displayed by pressing [Down]:
- *.* X:\UTIL\DIFF %w\%f %t\%f > %@%n.DIF
- ;
- ;----------------------------- Example 11 ----------------------------
- ; Next is a program that works with binary files rather than text,
- ; so we change the list of excluded extensions accordingly:
- # DOC,TXT,C,CPP,H,PAS,AS?,MAP,INC,MAC,STR,EQU,DEF,NOT,INI,WRI,
- ; Note that extensions shorter than 3 bytes are OK. Also, to
- ; specify a completely blank extension (or "no extension"), begin
- ; or end the list with a comma.
- *.* X:\UTIL\BINDIFF %w\%f %t\%f > %@%n.DIF
- ;
- ;----------------------------- Example 12 ----------------------------
- ; A "#" line with no extensions means ALL files (including .COM
- ; and .EXE) will be associated with any "*.*" commands following.
- #
- ;----------------------------- Example 13 ----------------------------
- ; The next command refers to a simple batch file that comes with the
- ; distribution package, showing a way of copying any types of files
- ; in the same (working) directory, without leaving EDDY:
- *.* %h\EDDYCOPY %f %@%n
- ; This, or a line very much like it, should be included in your own
- ; EDDY.USE. For further information, see EDDY.DOC, Section 11.6)
- ;
- ;************** End of point-n-shoot command section ***************
- [printer]
- ;******** Start of section containing printer control strings ********
- ;
- ; IBM ProPrinter / Canon BJ commands...
- ;
- DC2 ; Set 10 cpi pitch
- ESC,'X',1,80 ; Set horizontal margins 1-80
- ESC,':' ; Set 12 cpi pitch
- ESC,'X',8,96 ; Set horizontal margins 8-96
- DC2,SI ; Set (approximately) 17 cpi pitch
- ESC,'X',7,132 ; Set horizontal margins 7-132
- ESC,'P',1 ; Set proportional space mode
- ESC,'P',0 ; Cancel proportional space mode
- ESC,0 ; Set 1/8" line spacing
- ESC,1 ; Set 7/72" line spacing
- ESC,'G' ; Set double-strike printing
- ESC,'H' ; Cancel double-strike printing
- ESC,'W',1 ; Set double-wide character printing
- ESC,'W',0 ; Cancel double-wide character printing
- SI,ESC,'S',0,ESC,'A',6,255 ; Set miniature printing
- ;
- ; HP LaserJet commands...
- ;
- ESC,'&k0s' ; Set 10 cpi for HP LaserJet
- ESC,'&k4s' ; Set 12 cpi for HP LaserJet
- ESC,'&k2s' ; Set 17 cpi for HP LaserJet