; ; Sample macro file. ; (DNAV.MAC) in the current directory or on the PATH (see DNAV.DOC). ; ; This is a plain ASCII text file, modify it to suit your own needs. ; All after the semicolon ; is ignored. ; ; The first type of macro allows you to define the program action when ; you press an alt key with an alphabetic or function key of your choice. ; So you can specify one-key "point and shoot" actions. ; The ^ is replaced by the file under the cursor. ; These macros "shell" to DOS and return to DNAV when the action is done: ; alt-x ^ ^4; Execute file under cursor alt-z pkunzip ^ ; Call 'pkunzip' alt-v fv ^ ^4; Call Buerg's 'fv' view arc, zip, lzh, etc. alt-p copy ^ prn ; print file under the cursor ; ; The following two impractical macros are used in the DNAV.DOC tutorial alt-t type ^ ^4; TYPE the file to the screen f find "" ^ ; Find, for "fill in the blank" example 7 ; ; Other possibilities ; ;alt-a pkxarc ^ ; Call program 'pkxarc' to expand *.arc files ;alt-l lharc e ^ ; "unmelt" .lzh type archive under the cursor ;alt-F5 list c:indx\space89 ; Macro without reference to cursor file ;alt-w swap wp ^ ;Call Word Perfect using Niko Mak's SWAP.COM to ; reduce DNAV memory to 2k. ; ; At times, the above form is too simple, so: ; For the following macros (starting with a letter), ; the macro name (left column) is entered on ; the DOS line after a filename is selected with the F6 key ; The ^ is replaced by file previously selected with F6. See dnav.doc. ; ;mfc mf -u ^DP*.c ; Search C files, this dir ;mfw mf -ub ^DP*.wk? ; Search for string within worksheets ;cma chmod ^ -A ; Turn archive bit off ;aa arca dnav13 ^ ;Add a member to an arc file ;as arce ^ *.doc /p ; Pull *.doc to screen ;pks pkxarc /c ^ *.doc ; doc file to screen ;pkr pkxarc /c ^ read*.* ; readme file to screen ;pkl pkxarc /v ^ >>arclist ; Build an Arclist for viewing ;akv list arclist ; Now look at it ;su sort | uniq <^ >^N.s ;Sort and drop dups ;db dropblnk ^ ^N.d ; Strip blank lines ;cl1 cl /J -F 4000 -Zi ^ ;Microsoft cl /J with debug ; ; This is a comment line. The following macros (starting with a ; number) allow a shorthand when starting DNAV at the DOS prompt. ; ; A number as the first term after the program name indicates that a ; program start macro is requested. The number is simply replaced ; by the terms to its right in the specification (see below) up to ; the ; . You may add your own terms after the number. ; For example: ; "dnav 1" is identical to "dnav c:\ -i" ; "dnav 4 whereis.* hereis.* nowwhat.???" ; whereis 3 names, 3 drives ; "dnav 5" will show files from five directories ; 1 c:\ -i ; show entire c: drive 2 c:\dnav *.c *.h *.asm ; show source files only 3 c:\ d:\ e:\ -6 ; show root directory of three drives 4 c:\ d:\ e:\ -i 05 c:\pd c:\indx c:\c-sup d:\pd d:\temp ; show 5 that 'go together' 8 c:\ d:\ e:\ -i *.lzh *.arc *.zip ; Show all sets 10 . -i ; show current subdirectory and below 20 . e:\stan -i ; For a LAN: current dir plus my Network node 30 . e:\stan f:\stan -i ; For a LAN: current dir plus my Network nodes 99 c:\ -ib ; show c: drive, only files that need backup