home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR31 / YAFM22.ZIP / YAFM.DOC < prev    next >
Text File  |  1993-09-19  |  54KB  |  1,460 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                               YAFM  V2.2
  7.                    Copyright (c) 1991-1993 Bram Snip
  8.  
  9.  
  10.  
  11.   0. Contents
  12.   ▀▀▀▀▀▀▀▀▀▀▀
  13.  
  14.   1.     Help on Help
  15.   2.     Introduction
  16.   3.     Features
  17.   4.     Registration
  18.   5.     User support
  19.   6.     Installation
  20.   6.1.     Generated files
  21.   7.     Distribution
  22.   8.     Disclaimer
  23.   9.     Future improvements
  24.   10.    Known bugs
  25.   11.    Background
  26.   12.    Revision history
  27.   13.    Basic operation
  28.   13.1.    Starting yafm
  29.   13.2.    Quitting yafm
  30.   13.3.    Moving around
  31.   13.4.    Copy, Delete and Rename
  32.   13.5.    Executing commands on multiple files
  33.   13.6.    Refreshing the panel
  34.   13.7.    View or edit a file
  35.   13.8.    Compress and decompress files
  36.   13.9.    Programming the behaviour of the enter key
  37.   14.    Quick reference
  38.   14.1     File jokers
  39.   14.2.    Global commands
  40.   14.3.    File commands
  41.   14.4.    Panel commands
  42.   14.5.    File mark commands
  43.   14.6.    Cursor movement commands
  44.   15.    Configuring yafm
  45.   16.    User definable commands
  46.   16.1.    Command Administration
  47.   16.1.1.    Definition of hot-key
  48.   16.1.2.    Description field
  49.   16.1.3.    Allowance options
  50.   16.1.4.    Swap option
  51.   16.1.5.    Screen handling options
  52.   16.1.6.    Marked files handling options
  53.   16.1.7.    Return options
  54.   16.1.8.    User dialog options
  55.   16.2.    Command batch file
  56.   16.3.    What you shouldn't do
  57.   16.4.    Available environment variables
  58.   17.    Dialog box jokers
  59.   17.1.    Reference list
  60.   17.2.    Examples
  61.   18.    Reference section
  62.   18.1.    RestoreDosScreen (' ')
  63.   18.2.    ToggleEgaMode (F12)
  64.   18.3.    Quit ('Q')
  65.   18.4.    ToLeftPanel (KEY_LEFT)
  66.   18.6.    ToRightPanel (KEY_RIGHT)
  67.   18.7.    ToOtherPanel (KEY_TAB)
  68.   18.8.    AttributeCmd ('A')
  69.   18.9     CopyCmd ('C')
  70.   18.10.   DeleteCmd (KEY_DEL, 'D')
  71.   18.11.   RenameCmd ('R')
  72.   18.12.   ToSon ('V', KEY_ENTER)
  73.   18.13.   ExecuteDosCmd ('X')
  74.   18.14.   First (KEY_HOME)
  75.   18.15.   Last (KEY_END)
  76.   18.16.   Previous (KEY_UP)
  77.   18.17.   Next (KEY_DN)
  78.   18.18.   PrevPage (KEY_PGUP)
  79.   18.19.   NextPage (KEY_PGDN)
  80.   18.20.   ToggleStatusDisplay (KEY_F9)
  81.   18.21.   ToggleListDisplay (KEY_F10)
  82.   18.22.   ReLoad ('L')
  83.   18.23.   ToggleMark ('KEY_INS)
  84.   18.24.   MarkAll (KEY_GR_PLUS)
  85.   18.25.   UnMarkAll (KEY_GR_MINUS)
  86.   18.26.   InvertMarks ('I')
  87.   18.27.   RestoreMarks ('O')
  88.   18.28.   ToParent (KEY_ESC, KEY_ENTER, 'V')
  89.   18.29.   FilterCmd ('F')
  90.   18.30.   SortCmd ('S')
  91.   18.31.   NewDiskCmd ('N')
  92.   18.32.   MakeDirCmd ('M')
  93.  
  94.  
  95.  
  96.   1. Help on Help
  97.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  98.  
  99.   The on line help for YAFM is executed by the external program
  100.   PAGEVIEW.
  101.  
  102.   Pageview is a text viewer program which is called to display the
  103.   text file "yafmkeys.txt".
  104.  
  105.   Pageview is a program to view any ascii text file and can be used as
  106.   stand alone program. Pageview is self explaining.
  107.  
  108.   To find help on a topic you should go to the top of the file and look
  109.   for the topic you need help on.
  110.  
  111.  
  112.  
  113.  
  114.   2. Introduction
  115.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  116.  
  117.   YAFM is a shortcut for (Y)et (A)nother (F)ile (M)anager.
  118.  
  119.   YAFM is primarily intended as a quick and intuitive tool which allows
  120.   you to perform all kinds of operations on files with as much
  121.   flexibility as possible.
  122.  
  123.   YAFM is especially handy for the following activities:
  124.  
  125.   o) Viewing directories and files.
  126.   o) Copying, Deleting and Renaming files.
  127.   o) Compressing and Uncompressing files.
  128.   o) Executing commands based on the extension of a file.
  129.   o) Edit or View files with different editors/wordprocessors or
  130.      viewers based on file extensions.
  131.   o) Performing commands on files that need access to parts of a
  132.      file specification (drive letter, extension...).
  133.   o) Quickly creating batch files to perform some job on a
  134.      selected list of files.
  135.  
  136.  
  137.  
  138.   3. Features
  139.   ▀▀▀▀▀▀▀▀▀▀▀
  140.  
  141.   o) Two panel file display.
  142.   o) Built in file commands such as Copy, Delete and Rename.
  143.   o) Built in command to delete a complete directory tree.
  144.   o) Executing commands based on file extensions.
  145.   o) Configurable colors.
  146.   o) Configurable commands such as Edit and View.
  147.   o) Extendible through user definable commands which can be
  148.      assigned to almost any key.
  149.   o) Support for all compression programs such as PKZIP and ARJ.
  150.   o) Filtering filenames is possible (show only specified files).
  151.   o) Incremental file search in long directory listing.
  152.   o) Full access to all parts of the panel-directory names or the
  153.      current file specification when executing commands.
  154.   o) Uses NO memory when swapped to disk when executing programs
  155.      or user definable commands.
  156.   o) Main environment can be changed from within yafm.
  157.  
  158.  
  159.  
  160.   4. Registration
  161.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  162.  
  163.   To register YAFM, printout the file "regform.txt", complete it and
  164.   follow the instructions as mentioned in that file.
  165.  
  166.  
  167.  
  168.   5. User support
  169.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  170.  
  171.   You can get user support or communicate with the author by posting a
  172.   message in the ILink Shareware Conference to "Bram Snip".
  173.  
  174.  
  175.  
  176.   6. Installation
  177.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  178.  
  179.   The installation of yafm is executed by the program "yafminst".
  180.  
  181.   Yafminst can both be used to perform a first full installation or it
  182.   can be used to re-install yafm.
  183.  
  184.   The installation starts up with a help screen explaining how to use
  185.   the installation program.
  186.  
  187.   During installation the program files will be copied to the selected
  188.   target directory when needed and the default user definable commands
  189.   will be generated.  The installation program will prompt you for
  190.   confirmation before files are overwritten.
  191.  
  192.  
  193.   6.1. Generated files
  194.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  195.  
  196.   During installation the target  directory as specified by the user
  197.   will  be created  with the directory MACROS below it.
  198.  
  199.   The MACROS directory will hold the user definable commands that you
  200.   can define from within yafm and that are generated by the installation
  201.   program.
  202.  
  203.   The installation program will create default user commands for you.
  204.   When these commands are already present in this directory yafminst
  205.   will prompt you before files are overwritten.
  206.  
  207.   Except for the default user commands yafminst will also create the
  208.   file "YAFM.BAT". This batch file should be used to start yafm.
  209.  
  210.   The on-line help information is also generated during installation.
  211.   Because a large number of commands are user definable the on-line help
  212.   is generated dynamically. When you add commands of your own these will
  213.   be inluded in the help system as soon as you re-generate the help
  214.   file.
  215.  
  216.  
  217.   7. Distribution
  218.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  219.  
  220.   YAFM is a Shareware product. You are granted the right to distribute
  221.   this software freely, provided you always distribute the executable
  222.   programs along with all of the original documentation in its original
  223.   (compressed) form and you do not charge for the software.
  224.  
  225.   YAFM is copyrighted.  The author reserves all rights to the software
  226.   and these rights are protected by international copyright law. You may
  227.   not alter any file included in this package, nor may you modify the
  228.   package through the addition or omission of any file.
  229.  
  230.   The author spent a great deal of time writing this software.  If you
  231.   use this program on a regular base, you are required to register it
  232.   with the author.  See below for further information.
  233.  
  234.   When you are using this program without registering it please upload
  235.   the program in it's original (compressed) form to as many BBS-es as
  236.   you can. This will let you feel less guilty about using this program.
  237.  
  238.  
  239.  
  240.   8. Disclaimer
  241.   ▀▀▀▀▀▀▀▀▀▀▀▀▀
  242.  
  243.   This software is distributed "AS IS" with no warranty whatsoever.
  244.   Although every effort has been made to assure that the software
  245.   performs properly, I cannot assure its fitness for a particular
  246.   purpose, nor can I assume any responsibility for any damages caused by
  247.   this software or by its use.
  248.  
  249.   Due to the distribution method employed, there is always a possibility
  250.   that a program can be modified illegally without my knowledge.  The
  251.   best way to assure that your program is unmodified is to order a
  252.   registered copy of this program directly from the author.
  253.  
  254.   If you do experience any problems with the software, or software using
  255.   the same or similar name, please contact me.
  256.  
  257.   You can reach me at the address as listed in the file regform.txt or
  258.   you can leave a message to Bram Snip in the "ILink Shareware
  259.   Conference".
  260.  
  261.  
  262.  
  263.   9. Future improvements
  264.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  265.  
  266.   YAFM is under constant development. Future improvements MAY! be:
  267.  
  268.   o)  Mouse support
  269.   o)  Move a complete directory tree.
  270.   o)  Improved 4dos support (show and handle file descriptions)
  271.   o)  Display of directory tree
  272.   o)  Backup manager facilities
  273.  
  274.   o) CTRL-C can not be used as the name of a user definable
  275.      command since it will abort the program.
  276.  
  277.  
  278.  
  279.   11. Background
  280.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  281.  
  282.   I started developing YAFM at a time that I was a frequent user of two
  283.   other file managers: The Norton Commander and PFM.
  284.  
  285.   Because I frequently used both programs because of their particular
  286.   advantages I decided to develop a tool of my own which combines the
  287.   features I most often used of both programs.
  288.  
  289.   The first working version of this program, called DM (Disk Manager),
  290.   was written in the 'C' language.  After that the program was gradually
  291.   rewritten in C++ and enhanced to the current version which is called
  292.   YAFM (Yet Another File Manager).
  293.  
  294.  
  295.  
  296.   12. Revision history
  297.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  298.  
  299.   Version 2.2
  300.   -----------
  301.   - Yafm can handle larger file lists because it is compiled using the
  302.     large memory model now.
  303.   - The user interface has been changed to account for future mouse
  304.     support.
  305.   - A number of configuration options have been added to the
  306.     configuration program.
  307.   - The F1 key is no longer redefinable. The F1 key will only be used
  308.     for on-line help now. When the F1 key is pressed it will start
  309.     pageview to view the contents of "yafmkeys.txt" in the yafm
  310.     directory.
  311.   - The program "yafmkeys" is added to the yafm package. Yafmkeys will
  312.     display a list of available commands (both internal as user defined)
  313.     to the text screen. The output of "yafmkeys" can be redirected to
  314.     "yafmkeys.txt" which is used as the help file for yafm.
  315.  
  316.   Version 2.1b
  317.   ------------
  318.   This version was never officially released since it was a test
  319.   version.
  320.   - Pageview will not have border lines when zoomed to full window.
  321.   - Pageview was redesigned. Because of this the speed of pageview is
  322.     increased and some bugs are removed.
  323.   - Window borders and shadow settings are configurable now.
  324.   - Default compression command ('Z') is changed.
  325.   - Added a default user command to Xcopy a directory tree ('CTRL-X').
  326.   - Fixed bug that appeared when a directory name was typed without
  327.     "*.*" as target for copy.
  328.   - The documentation files are reorganised. Some contents of the
  329.     readme.txt file is moved to this file and the files manual.txt and
  330.     yafmhelp.txt are merged together into this document "yafm.doc"
  331.   - Macros are named configurable commands now because the word "macro"
  332.     will be reserved for keyboard macros.
  333.   - Compression method changed from ARJ to PKZIP for distribution file.
  334.   - The deltree program that used to be part of the yafm package is no
  335.     longer included.
  336.   - The macro definition part (which is now called command definition)
  337.     has been split off from the configuration program (yafmcfg) into a
  338.     separate program called "yafmcmd.exe". The program can be called as
  339.     a stand alone program or it can be called from yafm using the F3
  340.     macro. Although the actual code for command definition is no longer
  341.     present in the configuration program it is still possible to define
  342.     user commands from it. The configuration program simply calls the
  343.     command definition program when the appropriate menu is activated.
  344.   - Selection of Macro editor is removed from configuration program. The
  345.     selection of the command editor takes place now when you start to
  346.     edit a command.
  347.   - Added command to define a user command ('F3').
  348.   - Added command to edit list of marked files ('CTRL-E').
  349.   - Some new options are added to command definition.
  350.   - The characters for file jokers and the way to enter them in dialog
  351.     boxes is changed.
  352.  
  353.   Version 2.1a
  354.   ------------
  355.   - Fixed bug in pageview concerning incorrect handling of TABS in
  356.     combination with long lines.
  357.   - The popup box reminder to register is displayed now really displayed
  358.     every time yafm is started or re-entered after being swapped.
  359.   - Help system is greatly improved in configuration program.
  360.  
  361.   Version 2.1
  362.   -----------
  363.   - Swap and pause options added in user command definitions.
  364.   - Yafm conditionally swaps to disk when executing  user commands and
  365.     DOS commands now.
  366.   - Yafm.bat should now be used to start the program.
  367.   - The pageview program has been rewritten and is used as the default
  368.     file viewer now.
  369.   - Pop-up boxes can be configured as normal or exploding.
  370.   - ToggleEga command is assigned to F12 key now.
  371.   - Yafm can handle 80*40 display mode now.
  372.   - Yafm prompts for new directory specification now when saved
  373.     directory could not be activated.
  374.   - Floppy disk removal is detected in a better way now.
  375.   - Reload operation is displayed in a different way
  376.   - Rename and delete operations on marked files will no longer change
  377.     the first character of the name on the display.  This allows
  378.     undelete operations on accidentally removed files.
  379.   - A popup box reminding you to register is displayed every time yafm
  380.     is started or re-entered after being swapped.
  381.   - Installation program changed
  382.  
  383.   Version 2.0A
  384.   ------------
  385.   - Minor problems fixed.
  386.   - ToggleEga command added.
  387.  
  388.   Version 2.0
  389.   -----------
  390.   - Macro facility completely changed and improved.  There is no
  391.     difference between macros and configurable commands anymore.
  392.  
  393.   Version 1.6d
  394.   ------------
  395.   - Screen handling changed
  396.   - Macro feature extended.
  397.  
  398.   Version 1.6c
  399.   ------------
  400.   - Configuration changes are always detected now
  401.   - Default option of 'N'ew command changed
  402.   - Jokers are supported in macro dialog boxes now.
  403.  
  404.   Version 1.6b
  405.   ------------
  406.   - Further improvements of macro facility.
  407.   - Removed bug in AutoSearch.
  408.  
  409.   Version 1.6a
  410.   ------------
  411.   - Macro definition command was improved.
  412.  
  413.   Version 1.6
  414.   -----------
  415.   - First 'official version that was placed on a BBS.
  416.  
  417.   Older versions
  418.   --------------
  419.   - These versions of YAFM and DM were passed to friends and relatives
  420.     evaluation purposes. These versions should not be used since they
  421.     may (and most probably will!) contain bugs.
  422.  
  423.  
  424.  
  425.   13. Basic operation
  426.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  427.  
  428.   YAFM comes up in a two panel display. Each panel shows a separate
  429.   directory listing.
  430.  
  431.   The panels can be operated individually.
  432.  
  433.   Within the active panel a cursor bar is visible that hilites the
  434.   active file or directory. Directories are displayed in uppercase and
  435.   files in lowercase.
  436.  
  437.   The parent directory is displayed as two consecutive dots (..).
  438.  
  439.  
  440.   13.1. Starting yafm
  441.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  442.  
  443.   Yafm is started by a batch file yafm.bat. A batch file is used because
  444.   this enables the actual program to activate user commands that can
  445.   change the main DOS environment and to make sure that no (not even a
  446.   single bit) of memory is being used by YAFM when it activates user
  447.   commands or programs.
  448.  
  449.   The batch file is generated by the installation program.
  450.  
  451.  
  452.   13.2. Quitting yafm
  453.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  454.  
  455.   To quit yafm you have to press the 'Q' (quit) key.
  456.  
  457.  
  458.   13.3. Moving around
  459.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  460.  
  461.   You can move the cursor within the panel using the up arrow, down
  462.   arrow, page up, page down, home and end keys. You can move to other
  463.   subdirectories or the parent directories using the ENTER or 'V' (view)
  464.   and Escape keys.  To move to the other panel you can use the TAB or
  465.   the left and right arrow keys
  466.  
  467.  
  468.   13.4. Copy, Delete and Rename
  469.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  470.  
  471.   You can copy, rename and delete the file under the cursor by pressing
  472.   'C', 'R' and 'D' respectively. During copy and rename the target will
  473.   be defaulted to that of the opposite panel.
  474.  
  475.  
  476.   13.5. Executing commands on multiple files
  477.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  478.  
  479.   To operate on multiply files you must select the files you want the
  480.   command to work on.  To select files (mark or tag them) you can use
  481.   the insert key to toggle the mark/tag for a single file or you can use
  482.   the gray plus and minus keys to mark or unmark all files in the panel.
  483.   Marked files will have the mark character ('*') displayed on them.
  484.  
  485.   When you perform an operation on multiple files the mark '*' changes
  486.   to an old mark indicator '.' after the operation has been performed.
  487.   You can restore the old marks to '*' by pressing 'O' for Oldmarks.
  488.  
  489.  
  490.   13.6. Refreshing the panel
  491.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  492.  
  493.   Yafm does not refresh (reload) the panels automatically because of the
  494.   restore old marks feature. To reload the panel you have to give the
  495.   reload command 'L'.  You may not like this now but you will appreciate
  496.   this behaviour in the future!!!.
  497.  
  498.  
  499.   13.7. View or edit a file
  500.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  501.  
  502.   The view and edit commands are in fact user definable commands.
  503.   Default view and edit commands are created during installation and can
  504.   be configured to your individual preferences using the user definable
  505.   commands option from the configuration program.
  506.  
  507.   To edit a file you simply have to type 'E' (edit) and your favourite
  508.   text editor will be started to edit the file under the cursor. To
  509.   start the file viewer of your choice you have to press the 'V' (view)
  510.   key.
  511.  
  512.   The view command is by default configured in such a way that it
  513.   correctly shows the contents of compressed files that have been
  514.   compressed using arj and pkzip.
  515.  
  516.  
  517.   13.8. Compress and decompress files
  518.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  519.  
  520.   The fully configurable compress/decompress feature of yafm is a very
  521.   strong point of yafm.  The compression/decompression commands are also
  522.   user definable commands for which defaults are generated by the
  523.   installation program.
  524.  
  525.   You can compress a single file, a list of marked files or a directory
  526.   with all its subdirectories using a single command.  The letter 'Z' is
  527.   used to activate this but that does not mean that you are restricted
  528.   to use PKZIP as the compression program.  The command can easily be
  529.   reconfigured to use say. ARJ instead.
  530.  
  531.   To uncompress a compressed file you simply have to give the uncompress
  532.   command ('U'). The default uncompress command looks at the extension
  533.   of the file under the cursor to determine how it should be
  534.   uncompressed. The installation program correctly generates default
  535.   commands for compression and decompression of files using ARJ and
  536.   PKZIP programs.
  537.  
  538.  
  539.   13.9. Programming the behaviour of the enter key
  540.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  541.  
  542.   To show the configurability of yafm you should note that even the
  543.   behaviour of the ENTER key is programmable. The enter key can be
  544.   defined to do actions depending on the extension of the file under the
  545.   cursor.
  546.  
  547.   Example:
  548.  
  549.     ┌────────────────────────────────────┐
  550.     │ .bat, .btm : Start the batch file  │
  551.     │ .exe, .com : Start the program     │
  552.     │ .wp5       : Start wordperfect     │
  553.     │ .txt       : Start editor          │
  554.     │ .zip,.arj  : Uncompress the file   │
  555.     └────────────────────────────────────┘
  556.  
  557.   The actions for the enter key as generated by the installation program
  558.   are:
  559.  
  560.     ┌───────────────────────────────────────┐
  561.     │ .com, .exe : Start the program.       │
  562.     │ others     : View command is started. │
  563.     └───────────────────────────────────────┘
  564.  
  565.  
  566.  
  567.   14. Quick reference
  568.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  569.  
  570.   ┌─────────────────┬─────────────────────────┬─────────────────────┐
  571.   │ Global commands │ Panel command           │ File commands       │
  572.   ├─────────────────┼─────────────────────────┼─────────────────────┤
  573.   │ Q   = Quit      │ S        = Sort         │ C      = Copy       │
  574.   │ L   = reLoad    │ N        = NewDrive     │ R      = Rename     │
  575.   │ ' ' = ShowDos   │ M        = MakeDir.     │ DEL, D = Delete     │
  576.   │ X   = eXecute   │ F        = Filter       │ A      = Attrib     │
  577.   │ F12 = Ega       │ I        = InvertMarks  │ INSERT = ToggleMark │
  578.   │ F1  = Help      │ O        = OldMarks     │                     │
  579.   │                 │ TAB      = OtherPanel   │                     │
  580.   │                 │ F9       = ToggleStatus │                     │
  581.   │                 │ F10      = ToggleList   │                     │
  582.   │                 │ GREYPLUS = MarkAll      │                     │
  583.   │                 │ ESC      = ToParent     │                     │
  584.   │                 │ ENTER    = ToSubdir     │                     │
  585.   └─────────────────┴─────────────────────────┴─────────────────────┘
  586.  
  587.                              ┌───────────────────┐
  588.                              │ User commands     │
  589.                              ├───────────────────┤
  590.                              │ H     = Help      │
  591.                              │ F2    = Configure │
  592.                              │ F3    = DefineCmd │
  593.                              │ F8    = ScrSaver  │
  594.                              │ P     = Purge     │
  595.                              │ E     = Edit      │
  596.                              │ Z     = Zip       │
  597.                              │ U     = Unzip     │
  598.                              │ V     = View      │
  599.                              │ ENTER = UserCmd   │
  600.                              │ C-X   = XCopyDir  │
  601.                              │ C-E   = XEdit     │
  602.                              └───────────────────┘
  603.  
  604.  
  605.   14.1 File jokers
  606.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  607.  
  608.   %D=Drive            @D=OtherDrv
  609.   %P=Path             @P=OtherPath
  610.   %B=Base             @B=Base       ────>  ( %B and @B are the same! )
  611.   %E=Extension        @E=Extension  ────>  ( %E and @E are the same! )
  612.  
  613.   %F=FullFile         @F=FullOtherFile
  614.                            │
  615.                            └────────> ( Current file in other panel! )
  616.  
  617.  
  618.   14.2. Global commands
  619.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  620.  
  621.   Global commands do not affect files or panels.
  622.  
  623.  
  624.   'Q'      : Quit this program.                               [--]
  625.   F1       : Execute the online help using PAGEVIEW.          [--]
  626.   'H'      : Execute the online help using PAGEVIEW.          [u-]
  627.   F2       : Start configuration program.                     [u-]
  628.   F3       : Start command definition program.                [u-]
  629.   F8       : Start screen saver.                              [u-]
  630.   ' '      : Toggle between dos screen and YAFM screen.       [--]
  631.   'X'      : eXecute dos command                              [-*]
  632.   F12      : Toggle between ega- (50 lines) and normal mode   [--]
  633.                                                                ││
  634.                   Implemented as a user definable command ─────┘│
  635.                             Command works on marked files ──────┘
  636.  
  637.  
  638.   14.3. File commands
  639.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  640.  
  641.   File commands affect marked files or the hilited file or directory.
  642.  
  643.  
  644.   'A'    : change file Attributes                             [-*]
  645.   DEL,'D': Delete file                                        [-*]
  646.   'C'    : Copy file                                          [-*]
  647.   'R'    : Rename file                                        [-*]
  648.   'Z'    : compress (using pkZip, Arj, Arc) file or directory [u*]
  649.   'U'    : Uncompress file                                    [u-]
  650.   'E'    : Edit file                                          [u-]
  651.   CTRL-E : Edit marked files                                  [u*]
  652.   'V'    : View file when cursor is located on file           [u-]
  653.   ENTER  : Execute user definable enter command               [u-]
  654.   CTRL-X : Xcopy a directory tree with sub directories        [u-]
  655.                                                                ││
  656.                   Implemented as a user definable command ─────┘│
  657.                             Command works on marked files ──────┘
  658.  
  659.  
  660.   14.4. Panel commands
  661.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  662.  
  663.   Panel commands affect the current panel or directory.
  664.  
  665.  
  666.   'F'   : Filter files, display only specified file groups    [--]
  667.   'S'   : Sort files by Date/Time, Name, Size or Extension    [--]
  668.   'L'   : reLoad file information from disk (refresh panel).  [--]
  669.   F9    : Toggle panel status line display mode.              [--]
  670.   F10   : Toggle filelist display mode.                       [--]
  671.   'M'   : Make new directory.                                 [--]
  672.   'N'   : Select new drive / and or directory.                [--]
  673.   'P'   : Purge files (delete unwanted files such as *.bak)   [u-]
  674.                                                                ││
  675.                   Implemented as a user definable command ─────┘│
  676.                             Command works on marked files ──────┘
  677.  
  678.  
  679.   14.5. File mark commands
  680.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  681.  
  682.   File mark commands affect file markers.
  683.  
  684.  
  685.   INSERT      : Toggle file mark
  686.   GREY PLUS   : Mark all files
  687.   GREY MINUS  : Unmark all files
  688.   'O'         : Restore Old marks
  689.   'I'         : Invert file marks
  690.  
  691.  
  692.   14.6. Cursor movement commands
  693.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  694.  
  695.   This  section describes the commands that move the cursor
  696.  
  697.  
  698.   Up, Down    : Go up/down one line
  699.   Home,End    : Go to first/last file in panel
  700.   PgUp,PgDn   : Go one page up/down
  701.   <ALT>+key   : Incremental file-lookup
  702.   ESC         : Goto parent directory
  703.   ENTER       : Goto sub directory             (*) ─┐
  704.   'V'         : Load and view sub directory    (*) ─┤
  705.   TAB         : Go to other panel                   │
  706.   Left,Right  : Go to left,right panel              │
  707.                                                     │
  708.    ┌────────────────────────────────────────────────┘
  709.    
  710.   (*)   These commands have other meanings when the cursor is
  711.         located on a file.
  712.  
  713.  
  714.  
  715.   15. Configuring yafm
  716.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  717.  
  718.   The configuration of yafm is handled by the program "yafmcfg".  This
  719.   program, which can either be activated as a stand-alone program or as
  720.   part of the configure command, enables you to perform the following
  721.   actions:
  722.  
  723.  
  724.   o) Create / configure user commands
  725.   o) Configure the colors
  726.   o) Configure the screen saver settings
  727.   o) Configure the appearance of pop up windows
  728.   o) Re-generate the help textfile yafmkeys.txt
  729.   o) Read the last minute information
  730.   o) Read the documentation
  731.   o) Read the registration form
  732.  
  733.   The yafmcfg program can be executed in three ways:
  734.  
  735.   o) From dos by calling the program
  736.   o) From within yafm by calling the program
  737.   o) Using the default configure command which is assigned to
  738.      F2 by default.
  739.  
  740.   The configuration of colors, screen saver settings and appearance of
  741.   pop up windows is explained by the on-line help of the configuration
  742.   program.
  743.  
  744.   The creation / maintenance of user definable commands is described in
  745.   chapter "User definable commands".
  746.  
  747.  
  748.  
  749.   16. User definable commands
  750.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  751.  
  752.   User definable commands (also called macros or user commands) are very
  753.   powerful. You can define user commands and execute them as if they
  754.   were built in commands.
  755.  
  756.   A user command consists of two parts:
  757.  
  758.   1) A batch file implementing the command.
  759.      In this batch file you may refer to the current directory,
  760.      the filename under the cursor or even parts of the filename
  761.      under the cursor.  For this purpose yafm has defined a number
  762.      of environment variables that will be setup just before the
  763.      command is executed.
  764.  
  765.   2) An administration file.
  766.      This administration file defines how yafm executes the
  767.      command.  It defines wether or not yafm should prompt for
  768.      additional arguments, wether or not the command is allowed on
  769.      directories or that the command supports marked files.
  770.  
  771.  
  772.   16.1. Command Administration
  773.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  774.  
  775.   The command administration can be defined using the command definition
  776.   program which is called "yafmcmd.exe". There are several ways You can
  777.   activate this program:
  778.  
  779.   1) Using the user definable commands option from the configuration
  780.      program.
  781.   2) Using the standard macro F3.
  782.   3) Directly by calling it from dos or from within yafm.
  783.  
  784.   When you have entered the yafmcmd program you will see a screen with a
  785.   number of input fields and check boxes. These fields and check boxes
  786.   specify the behaviour of the user command when it is executed.
  787.  
  788.   The next paragraphs will discuss all command administration options in
  789.   detail.
  790.  
  791.  
  792.   16.1.1. Definition of hot-key
  793.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  794.  
  795.   When you have entered the yafmcmd program you will see the cursor
  796.   which is positioned in a blank field under the title: "Key
  797.   assignment". This field will remain blank until you enter a valid key
  798.   or combination of keys that can be used as a "hotkey" for the command.
  799.  
  800.   When a valid hotkey was pressed the field will be filled with the name
  801.   of the hotkey. When the key specifies a new command the other fields
  802.   will be filled with appropriate defaults. When the key specifies a
  803.   command that already exists the fields will be filled as defined for
  804.   that command.
  805.  
  806.   When the key has been specified you can move to other fields by
  807.   pressing the TAB and SHIFT-TAB keys.
  808.  
  809.  
  810.   16.1.2. Description field
  811.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  812.  
  813.   The description field "Description" allows you to enter a short
  814.   description of the command.
  815.  
  816.   This is useful because the description will be displayed (as are all
  817.   other relevant configuration fields) as soon as you enter a valid
  818.   hotkey.
  819.  
  820.   The description will remind you of what the command does.
  821.  
  822.  
  823.   16.1.3 Allowance options
  824.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  825.  
  826.   The allowance options specify the conditions under which command
  827.   execution is allowed.
  828.  
  829.   o) Allow execution on directory:
  830.      Checking this option allows user commands to be executed on the
  831.      directory under the cursor.
  832.  
  833.   o) Allow execution on file:
  834.      Checking this option allows user commands to be executed on the
  835.      file under the cursor.
  836.  
  837.   o) Allow execution on parent dir.:
  838.      This option specifies if the command is allowed on the parent
  839.      directory (..). This option has affect only when you have specified
  840.      that the command is allowed on directories.
  841.  
  842.   Example: See the default edit (E) command for restriction of all
  843.            directories. See the default compress (Z) command for
  844.            restriction of parent directories.
  845.  
  846.  
  847.   16.1.4. Swap option
  848.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  849.  
  850.   When swapping is enabled yafm will swap itself to disk before it
  851.   executes the command. The result of this is that no memory is occupied
  852.   by yafm while the user command is being executed.
  853.  
  854.  
  855.   16.1.5. Screen handling options
  856.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  857.  
  858.   Yafm maintains two screens, the dos screen and the application screen
  859.   containing the file panels.  The following input fields control how
  860.   yafm handles these screens when the command is executed.
  861.  
  862.   o) Use dos screen:
  863.      Lets you specify wether or not YAFM restores the dos screen
  864.      BEFORE command execution.
  865.  
  866.   o) Save dos screen:
  867.      Specifies wether or not YAFM saves the dos screen AFTER the command
  868.      has been executed. This field will only have affect when you have
  869.      specified that the dos screen should be restored.
  870.  
  871.   Example:  See purge (P) command (no restore or save) and
  872.             Compress (Z) command (save and restore).
  873.  
  874.  
  875.   16.1.6. Marked files handling
  876.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  877.  
  878.   To following fields control the behaviour of user commands in relation
  879.   to marked files.
  880.  
  881.   o) Use marked files:
  882.      Specifies if the command should operate on marked files
  883.      rather than the current file when there are marked files.
  884.  
  885.   o) Store marked files in listfile:
  886.      Specifies that the command is able to process a list-file
  887.      (filelist.yfm) containing a list of files to operate on rather than
  888.      executing the command one file at a time.  The file filelist.yfm
  889.      will only exist when this option is used and there were marked
  890.      files.  This field will only be of interest when you have also
  891.      specified that the command is can be executed on marked files.
  892.      Example:  See default user command for compression(Z).
  893.  
  894.  
  895.   16.1.7. Return options
  896.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  897.  
  898.   The return options specify the behaviour of yafm AFTER having executed
  899.   the command.
  900.  
  901.   o) Reload after executed:
  902.      This field specifies wether or not yafm should perform a reload
  903.      after command execution.  Some user commands may cause that files
  904.      are removed from, or added to the current directory. If that is the
  905.      case you may consider to let yafm automatically reload the panel
  906.      when the command is executed.
  907.  
  908.   o) Pause option
  909.      When pause option is enabled yafm will prompt you to press a key
  910.      immediately after having executed the command. This allows you to
  911.      view the result of the user command (on the dos screen) before the
  912.      yafm screen is restored.
  913.  
  914.  
  915.   16.1.8. User dialog options
  916.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  917.  
  918.   When you define a command that needs additional arguments or user
  919.   interaction you may want to enable the dialog box for the command.
  920.   There following options control the user interface that is started
  921.   when the command is activated.
  922.  
  923.   o) Use dialog box:
  924.      This field specifies wether or not YAFM should pop-up a dialog box
  925.      before the command is executed.
  926.  
  927.   o) Title for dialog box:
  928.      This field specifies the title to appear in the dialog box.  This
  929.      field will only be used when you have specified that a dialog box
  930.      should be used.
  931.  
  932.      Note: You can use file jokers to refer to the current file or parts
  933.      of it in your title definition. The file jokers will be expanded
  934.      only once before the dialog box is started. So using this option in
  935.      combination with marked files will only have sence if there is no
  936.      reference to base and extensions of files.
  937.  
  938.   o) Default response (Dir):
  939.      This field specifies the default response that appears in the
  940.      dialog box when it the command is started to act on a directory.
  941.      You can use file jokers without problems. These will be expanded
  942.      correctly before the dialog box is displayed.
  943.  
  944.   o) Default response (File):
  945.      This field specifies the default response that appears in the
  946.      dialog box when it the command is started to act on a single file.
  947.      You can use file jokers without problems. These will be expanded
  948.      correctly before the dialog box is displayed.
  949.  
  950.   o) Default response (Marked):
  951.      This field specifies the default response that appears in the
  952.      dialog box when it the command is started to act on a list of
  953.      marked files.  You can use file jokers without problems. These will
  954.      be expanded correctly (regarding drive and path references) before
  955.      the dialog box is displayed. When there were references to base and
  956.      extension parts the expansion will not be displayed on the screen
  957.      but WILL be handled during execution correctly however!.
  958.  
  959.   Example:  See the standard eXecute dos command (X). See the Xcopy
  960.             command (CTRL-X).
  961.  
  962.  
  963.  
  964.   16.2. Command batch file
  965.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  966.  
  967.   The batch file to implement the user command can either be defined
  968.   from the command definition program (using the command definition
  969.   command (F3)) or it can be written by hand using a text editor.
  970.  
  971.   In either case you need to use a text editor. From the command
  972.   definition program the command editor of your choice can be entered
  973.   just before you start to edit the command.
  974.  
  975.   The order in which you define the user command parts (administration
  976.   and batch file) is not important. In fact, the administration file is
  977.   not needed at all. A default administration file will be generated
  978.   when the user command is executed for the first time in that case.
  979.  
  980.  
  981.   16.3. What you shouldn't do
  982.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  983.  
  984.   It is not very wise to change the EDIT and the file VIEW commands.
  985.   You may want to change them, that's fine. But it is not wise to change
  986.   the purpose (editing / viewing) of the commands.
  987.  
  988.   The reason for this is that these commands are supported and referred
  989.   to by the installation configuration program (to start the editor of
  990.   your particular choice or to start the file viewer of your particular
  991.   choice).
  992.  
  993.   Also, be restrictive in changing the assignments of other default user
  994.   commands because this may lead to inconsistency of commands and help
  995.   files.
  996.  
  997.  
  998.   16.4. Available environment variables
  999.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1000.  
  1001.   The environment variables should only be used in batch files for
  1002.   configurable commands.
  1003.  
  1004.   The following environment variables are available to user commands:
  1005.  
  1006.  
  1007.   DISK             Current disk.       "D:"
  1008.   DIR              Current directory   "\DEVELOP\YAFM\"
  1009.   BASE             Current base name   " yafm"
  1010.   EXTENSION        Current extension   ".exe"
  1011.   OTHERDISK        Other disk          "B:"
  1012.   OTHERDIR         Other directory     "\"
  1013.   FULLFILE         Full file spec      "D:\DEVELOP\YAFM\yafm.exe"
  1014.   FULLOTHERFILE    Other filespec      "B:\yafm.exe"
  1015.   ISFILE           Yes when file       "Yes"
  1016.   ISDIRECTORY      Yes when directory  "Yes"
  1017.   YAFMDIR          The yafm directory  "C:\YAFM\"
  1018.  
  1019.  
  1020.  
  1021.   17. Dialog box jokers
  1022.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1023.  
  1024.   When entering strings in DIALOG boxes you can use special characters
  1025.   called jokers to refer to the name of the current file or parts of it.
  1026.  
  1027.   Jokers are equivalent to environment variables that are available to
  1028.   user commands with the following exceptions:
  1029.  
  1030.   o) Jokers are expanded always before execution of every command,
  1031.      including internal commands such as Copy and Rename.
  1032.   o) Environment variables on the other hand will only be setup
  1033.      when executing user commands.
  1034.  
  1035.   The file jokers will be not be expanded until right before execution
  1036.   of the command and will be saved in unexpanded form in the command
  1037.   history. This allows you to use file jokers to execute on a list of
  1038.   marked files or to re-use the same command for different files.
  1039.  
  1040.  
  1041.   17.1. Reference list
  1042.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1043.  
  1044.   References to file in current panel
  1045.   -----------------------------------
  1046.   %D     : Insert (D)rive string of current panel in string
  1047.   %P     : Insert (P)ath string of current panel in string
  1048.   %B     : Insert (B)ase name string without extension of file/directory
  1049.            under the cursor in the string
  1050.   %E     : Insert (E)xtension string of file/directory under the cursor
  1051.            in the string
  1052.   %F     : Insert (F)ull file specification of file/directory under the
  1053.            cursor in the string (equivalent to %D%P%B%E).
  1054.  
  1055.   @D     : Insert (D)rive string of other panel in string
  1056.   @P     : Insert (P)ath string of other panel in string
  1057.   @B     : Same as %B
  1058.   @E     : Same as %E
  1059.   @F     : Insert (F)ull file specification of file/directory under the
  1060.            cursor in the string BUT USE THE DRIVE AND PATH SPECIFICATIONS
  1061.            OF THE OPPOSITE PANEL! (equivalent to @D@P@B@E).
  1062.  
  1063.   Note: The file jokers @B @E and @F may seem strange to you now but the
  1064.   purpose of these file jokers will become clear to you when you review
  1065.   the examples.
  1066.  
  1067.  
  1068.   17.2. Examples
  1069.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1070.  
  1071.   Example: Copy all files from current panel that do not exist in
  1072.            other panel:
  1073.  
  1074.   o) Mark all files in panel the panel
  1075.   o) Start entering a dos command by pressing 'X'
  1076.   o) Enter the command : "if not exist @F copy %F @F".
  1077.   o) Or in plain english:
  1078.  
  1079.         @F = <OtherDrive><OtherPath><CurrentFile><CurrentExtension>
  1080.         %F =                        <CurrentFile><CurrentExtension>
  1081.  
  1082.   The command will now be executed on all marked files correctly because
  1083.   the filename arguments of the copy command will be substituted for
  1084.   each file.
  1085.  
  1086.  
  1087.  
  1088.   18. Reference section
  1089.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1090.  
  1091.   This reference section is not complete yet. As it is now this
  1092.   reference section briefly discusses all built in commands. This manual
  1093.   should be read as an addition to the text found in previous chapters.
  1094.  
  1095.   In the future this reference section will be extended with background
  1096.   information, and a description of the default user commands etc.
  1097.  
  1098.   Each command will be discussed in a separate chapter.  The title of
  1099.   the chapter will have the name as it is used in the source code.  The
  1100.   key to activate the command with is also included in the title between
  1101.   braces ().
  1102.  
  1103.  
  1104.   18.1. RestoreDosScreen (' ')
  1105.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1106.  
  1107.   This command will restore the dos screen. The application screen (yafm
  1108.   screen) will be restored by pressing any key.
  1109.  
  1110.  
  1111.   18.2. ToggleEgaMode (F12)
  1112.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1113.  
  1114.   This command toggles the screen between ega mode (50 lines of 80
  1115.   characters) and normal mode (25 lines of 80 characters).
  1116.  
  1117.  
  1118.   18.3. Quit ('Q')
  1119.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1120.  
  1121.   This command will quit yafm unconditionally.
  1122.  
  1123.  
  1124.   18.4. ToLeftPanel (KEY_LEFT)
  1125.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1126.  
  1127.   This command positions the cursor to the left panel when the cursor
  1128.   was positioned in the right panel.  This command has no affect when
  1129.   the cursor was already positioned in the left panel.
  1130.  
  1131.   Yafm remembers the cursorposition within a panel when a panel is left
  1132.   and tries to restore that position when the panel is entered again.
  1133.  
  1134.   When the directory of the panel is not valid any more (eg.  it is
  1135.   deleted from disk or a floppy disk has been removed) the program will
  1136.   perform a reload operation.
  1137.  
  1138.  
  1139.   18.6. ToRightPanel (KEY_RIGHT)
  1140.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1141.  
  1142.   This command positions the cursor to the right panel when the cursor
  1143.   was positioned in the left panel.  See "ToLeftPanel" command for a
  1144.   more detailed description of this command.
  1145.  
  1146.  
  1147.   18.7. ToOtherPanel (KEY_TAB)
  1148.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1149.  
  1150.   This command positions the cursor to the opposite panel.  This means
  1151.   that the cursor is positioned in the left panel when the right panel
  1152.   was the active panel and vice versa.
  1153.  
  1154.   See ToLeftPanel for a more detailed description of this command.
  1155.  
  1156.  
  1157.   18.8. AttributeCmd ('A')
  1158.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1159.  
  1160.   This command lets you change the file attributes of a file or a list
  1161.   of marked files.
  1162.  
  1163.   When you activate the command a dialogue box will appear prompting you
  1164.   to specify the file attributes.
  1165.  
  1166.   The following file attributes can be changed:
  1167.  
  1168.   ┌───────────────────────────┐
  1169.   │ Read only attribute : 'R' │
  1170.   │ Hidden attribute    : 'H' │
  1171.   │ System attribute    : 'S' │
  1172.   │ Archived attribute  : 'A' │
  1173.   └───────────────────────────┘
  1174.  
  1175.   You can change each attribute in a single command.  The new values for
  1176.   the attributes are displayed in the dialogue box as follows:
  1177.  
  1178.   [ ]  => Attribute is not changed
  1179.   [+]  => Attribute is SET
  1180.   [-]  => Attribute is cleared
  1181.  
  1182.   Initially you will see four [ ] fields specifying that you do not
  1183.   want to change file attributes.
  1184.  
  1185.   To change an attribute you have to enter the letter corresponding to
  1186.   the attribute.  The affect of this is that the letter in the dialogue
  1187.   box changes from [ ] (no change) to [+] (Set attribute) to [-]
  1188.   (Clear attribute).
  1189.  
  1190.   The attributes will be setup as specified when you press enter.  The
  1191.   command can be cancelled by pressing escape.
  1192.  
  1193.  
  1194.   18.9 CopyCmd ('C')
  1195.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1196.  
  1197.   The copy command copies a file or a list of marked files.  When you
  1198.   activate this command a dialogue box appears prompting you to enter
  1199.   the destination for the file or marked files.  By default the
  1200.   directory name of the opposite panel will be used since that is the
  1201.   most common way to copy files in yafm.  When you have specified the
  1202.   target (or when the default suits your needs) you can simply press
  1203.   enter to start the copy action.  You can press escape to abort the
  1204.   copy action.
  1205.  
  1206.  
  1207.   18.10. DeleteCmd (KEY_DEL, 'D')
  1208.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1209.  
  1210.   The delete command deletes a directory tree, a file or a list of
  1211.   marked files.  When you activate this command a dialogue box appears
  1212.   prompting you to confirm the delete action.  This allows you to change
  1213.   your mind.
  1214.  
  1215.  
  1216.   18.11. RenameCmd ('R')
  1217.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1218.  
  1219.   The rename command renames a file or a list of marked files.  When you
  1220.   activate this command a dialogue box appears prompting you to enter
  1221.   the destination for the file or marked files.  By default the
  1222.   directory name of the opposite panel will be used since that is the
  1223.   most common way to rename files in yafm.
  1224.  
  1225.   When you have specified the target (or when the default suits your
  1226.   needs) you can simply press enter to start the rename action. You can
  1227.   press escape to abort the copy action.
  1228.  
  1229.   When the target file specifies an other physical drive the file will
  1230.   first be copied and then be deleted from the source drive.  The
  1231.   character 'M' (move) will be used by yafm instead of 'R' (rename) in
  1232.   that case.
  1233.  
  1234.  
  1235.   18.12. ToSon ('V', KEY_ENTER)
  1236.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1237.  
  1238.   The ToSon command will change the default directory to the
  1239.   subdirectory that the cursor is located on.  This command will result
  1240.   in an automatic reload (of course).
  1241.  
  1242.   When the cursor is located on the parent directory (..) the directory
  1243.   is entered as if it was a sub directory.
  1244.  
  1245.   The toson command can only be performed when the cursor is on a
  1246.   directory.  The keys to activate this command may have other meanings
  1247.   when the cursor is located on a file.
  1248.  
  1249.  
  1250.   18.13. ExecuteDosCmd ('X')
  1251.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1252.  
  1253.   The executedoscmd command will execute a dos command from within yafm.
  1254.   You may specify file jokers as arguments to the dos command.
  1255.  
  1256.   This command behaves somewhat different than other commands. The
  1257.   behaviour of this command depends on wether or not there were marked
  1258.   files and wether or not you have specified file jokers in the dos
  1259.   command.
  1260.  
  1261.  
  1262.   ┌──────────────┬─────────────┬───────────────────────────┐
  1263.   │ Marked files │ File jokers │ Behaviour                 │
  1264.   ├──────────────┼─────────────┼───────────────────────────┤
  1265.   │  NO          │ NO          │ Command will be executed  │
  1266.   │              │             │ as is                     │
  1267.   │  NO          │ YES         │ Command will be  executed │
  1268.   │              │             │ for current file          │
  1269.   │ YES          │ NO          │ Command will be executed  │
  1270.   │              │             │ as it is                  │
  1271.   │ YES          │ YES         │ Command will be executed  │
  1272.   │              │             │ for marked files          │
  1273.   └──────────────┴─────────────┴───────────────────────────┘
  1274.  
  1275.   When the cursor was located on an executable file (.com, .exe, btm or
  1276.   .bat) the name of that file will be used as default.
  1277.  
  1278.   This command can be tuned by the user as if it is a user definable
  1279.   command.  You can specify wether or not YAFM should swap to disk
  1280.   before executing the command.  Swapping to disk before executing a
  1281.   command allows you to preserve as much memory as possible for the
  1282.   command (program) to be executed.
  1283.  
  1284.   To tune the behaviour of this command you simply enter the
  1285.   configuration program and choose the user commands option and press
  1286.   'X' as the hot key.
  1287.  
  1288.  
  1289.   18.14. First (KEY_HOME)
  1290.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1291.  
  1292.   This command will locate the cursor to the first entry in the panel.
  1293.  
  1294.  
  1295.   18.15. Last (KEY_END)
  1296.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1297.  
  1298.   This command will locate the cursor to the last entry in the panel.
  1299.  
  1300.  
  1301.   18.16. Previous (KEY_UP)
  1302.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1303.  
  1304.   This command will locate the cursor to the previous entry in the
  1305.   panel.  This command has no affect when the cursor is already located
  1306.   at the first entry
  1307.  
  1308.  
  1309.   18.17. Next (KEY_DN)
  1310.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1311.  
  1312.   This command will locate the cursor to the last entry in the panel.
  1313.   This command has no affect when the cursor is already located at the
  1314.   last entry.
  1315.  
  1316.  
  1317.   18.18. PrevPage (KEY_PGUP)
  1318.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1319.  
  1320.   This command will locate the cursor one page back in the panel.  This
  1321.   command has no affect when the cursor is located on the first entry.
  1322.  
  1323.  
  1324.   18.19. NextPage (KEY_PGDN)
  1325.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1326.  
  1327.   This command will locate the cursor one page ahead in the panel.  This
  1328.   command has no affect when the cursor is located on the last entry.
  1329.  
  1330.  
  1331.   18.20. ToggleStatusDisplay (KEY_F9)
  1332.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1333.  
  1334.   This command will toggle the status display.  The status display is
  1335.   the area below the panel.  The status can be toggled between:
  1336.  
  1337.   Date/Time   : The filename and its date and time  is displayed.
  1338.   Size/Attr   : The filename and its size and attributes is displayed.
  1339.   Diskusage   : The number of free bytes and used bytes is displayed.
  1340.   List status : The number and size of files in the current panel is
  1341.                 displayed.
  1342.  
  1343.  
  1344.   18.21. ToggleListDisplay (KEY_F10)
  1345.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1346.  
  1347.   This command will toggle the list display.  The list display is the
  1348.   area that contains the list of files for a panel.  The list display
  1349.   can be toggled between:
  1350.  
  1351.   DateTime : The filenames plus dates and times are displayed.
  1352.   SizeAttr : The filenames plus sizes and attributes are
  1353.              displayed.
  1354.  
  1355.  
  1356.   18.22. ReLoad ('L')
  1357.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1358.  
  1359.   Reloads (refreshes) information in the panel.  The disk is reread.
  1360.  
  1361.  
  1362.   18.23. ToggleMark ('KEY_INS)
  1363.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1364.  
  1365.   The marker of the file under the cursor is toggled.  When the file was
  1366.   not marked it is marked.  It is unmarked otherwise.  This command only
  1367.   works for files.  Files that are marked will have the marker '*'
  1368.   before the filename.
  1369.  
  1370.  
  1371.   18.24. MarkAll (KEY_GR_PLUS)
  1372.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1373.  
  1374.   Marks all displayed files in the panel.  Files in the panel that are
  1375.   filtered out are not marked and will not be referred to.
  1376.  
  1377.  
  1378.   18.25. UnMarkAll (KEY_GR_MINUS)
  1379.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1380.  
  1381.   UnMarks all files in the panel.
  1382.  
  1383.  
  1384.   18.26. InvertMarks ('I')
  1385.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1386.  
  1387.   Works like the "ToggleMark" command but it works on all files in the
  1388.   panel.  Files that are unmarked will be marked, files that were not
  1389.   marked will be marked.
  1390.  
  1391.  
  1392.   18.27. RestoreMarks ('O')
  1393.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1394.  
  1395.   Restores old marks (indicated by a '.' before the filenames) to a
  1396.   normal mark ('*').
  1397.  
  1398.  
  1399.   18.28. ToParent (KEY_ESC, KEY_ENTER, 'V')
  1400.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1401.  
  1402.   The ToParent command will change the default directory to the parent.
  1403.   This command will result in an automatic reload (of course).
  1404.  
  1405.   The ToParent command can only be performed when the cursor is on a
  1406.   directory when keys KEY_ENTER or 'V' are used.  The keys to activate
  1407.   this command may have other meanings when the cursor is located on a
  1408.   file since the keys are user definable in that case.
  1409.  
  1410.   The escape key always works independent of the position of the cursor.
  1411.  
  1412.  
  1413.   18.29. FilterCmd ('F')
  1414.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1415.  
  1416.   This command temporarily hides files that you are not interested in.
  1417.   This command is useful when you have a long directory listing and you
  1418.   are only interested in a group of specific files.  Eg.  you can use
  1419.   the filter command to display only .txt files.  It is also possible to
  1420.   specify multiple groups.  Filter specifications have to be separated
  1421.   by a ' ', ',' or a ';' in that case. Eg "*.cpp,*.h" will display only
  1422.   .cpp and .h files.
  1423.  
  1424.   When you activate this command a dialogue box appears which prompts
  1425.   you to enter a filter specification.  As a default "*.*" is used.
  1426.  
  1427.  
  1428.   18.30. SortCmd ('S')
  1429.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1430.  
  1431.   The sort command allows you to sort the files in the panel.
  1432.  
  1433.   The following sort modes are available:
  1434.  
  1435.   ┌─────────────────────────────────────────────────────────────┐
  1436.   │  T   ==> Time, Newest entries are displayed first.          │
  1437.   │  S   ==> Size  , Smallest files are displayed first.        │
  1438.   │  N   ==> Name , As you should expect, 'A' comes before 'Z'  │
  1439.   │  E   ==> Extension , Within extension entries are sorted by │
  1440.   │          name                                               │
  1441.   │  U   ==> Unsorted , For fastest reload.                     │
  1442.   └─────────────────────────────────────────────────────────────┘
  1443.  
  1444.  
  1445.   18.31. NewDiskCmd ('N')
  1446.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1447.  
  1448.   Allows you to specify a new drive and / or directory for the panel.
  1449.   The panel will be reloaded after that to show the contents of that new
  1450.   drive and / or directory.  The file filter specification will not be
  1451.   changed however.
  1452.  
  1453.  
  1454.   18.32. MakeDirCmd ('M')
  1455.   ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  1456.  
  1457.   Creates a new directory under the current one.  When the directory was
  1458.   created successfully it is entered.
  1459.  
  1460.