home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SYSTEM / ZAP33.ZIP / ZAP.DOC < prev    next >
Encoding:
Text File  |  1990-08-20  |  23.0 KB  |  480 lines

  1.  
  2.          ZAP - by Ken Stillson    April 1990     Updated for version 3.3
  3.        
  4.                                   =-=-=-=-=-=-=
  5.  
  6.         -=-  ZAP IS NOT "FREEWARE" - PLEASE READ THE FILE LICENSE.DOC  -=-
  7.         -=-       IF YOU DECIDE TO USE ZAP ON YOUR COMPUTER(S).        -=-
  8.        
  9.                                   =-=-=-=-=-=-=
  10.                                   What is ZAP ?
  11.                                   =-=-=-=-=-=-=
  12.  
  13.        > In General
  14.  
  15.            Zap is one of the growing number of utilities that does a 
  16.        little too much to generalize its function completely.  As well as 
  17.        it's basic functions, ZAP has a lot of short cuts for doing all 
  18.        sorts of common operations.  It is intended to be useful enough to 
  19.        be a replacement for the COMMAND.COM user interface.
  20.        
  21.        > The Menus
  22.        
  23.            On the right hand side of the screen is a menu box.  There are 
  24.        three different boxes needed to list all the ZAP functions, and two 
  25.        for the current values of all the F4 macros.  Press the space bar 
  26.        to rotate though the menus, or alt-x to jump to menu number x.
  27.        
  28.        > The Beginning
  29.        
  30.            It's original concept and basic format were taken from the 
  31.        program "Directory Control" [DC.COM].  The author very much thanks 
  32.        the original author of DC, and congratulates him/her on their 
  33.        excellent program.  Alas, the author of ZAP has been unable to 
  34.        determine the identity of the author of DC because the 
  35.        documentation for DC was not included on the BBS copy of DC the 
  36.        author obtained.  PLEASE - do not remove authors credit for their 
  37.        hard work by removing necessary documentation from programs - it's 
  38.        just not fair !
  39.  
  40.        > Moving Around the Directory Tree
  41.        
  42.            ZAP displays the current directory, one file per line, giving 
  43.        basic information about the files.  If the list is longer than one 
  44.        screen, the cursor keys (include page-up and page-down) can be used 
  45.        to look around the list.  
  46.        
  47.            You can change the way the list is sorted.  Hold down Ctrl and 
  48.        press N for Name, E for extension, S for size, D for date, or O for 
  49.        original (no sort).  Sub-directories are sorted separately, and 
  50.        put at the beginning, always sorted by their name.  Ctrl-R will 
  51.        set the Reverse sort mode, which is a saved default (see "setting
  52.        defaults" below).
  53.        
  54.            ZAP allows you to easily change the current directory.  Use the 
  55.        cursor keys to move the high-light bar onto the name of a directory 
  56.        you want to change to, and press return.  The ".." selection will 
  57.        go to the parent of the current directory, the "." key will simply 
  58.        reload the current one and re-draw the screen.  You can short-cut 
  59.        to the previous directory by pressing ".", and short-cut to the 
  60.        root directory of the current drive by pressing "/" or "\". 
  61.        
  62.            You can also jump directly to an entry (without using the 
  63.        cursor keys), by pressing the first letter of the name of the 
  64.        entry.  Then press return to select that directory.  To short-cut 
  65.        pressing return, hold down shift as you press the letter. 
  66.        
  67.            To type in a full directory name to change to, press F9.
  68.        This also allows you to change the current drive.  Playing with 
  69.        this a little will demonstrate: ZAP lets you move around a very 
  70.        large directory tree very quickly and very easily.
  71.        
  72.        > Basic File Operations
  73.        
  74.            ZAP also allows file operations.  Pressing return when 
  75.        high-lighting a file rather than a directory will run a command 
  76.        upon the highlighted file.  The idea is this: 
  77.        
  78.            RETURN- views the file
  79.            shift-RETURN- edits the file
  80.            ctrl-RETURN- runs the file
  81.        
  82.            For the view and edit functions- you must select your own 
  83.        favorite programs to do the operation.  You may wish to use the DOS 
  84.        "type" and "edlin" programs.  See below in the "Setting Defaults" 
  85.        section for how to change the programs used. 
  86.        
  87.        The first four function keys also provide file operations.  
  88.            F1 - copy file
  89.            F2 - delete  file
  90.            F3 - move / rename file
  91.            F4 - do ANYTHING to the file
  92.        
  93.            F4 is one of the very special (unique?) features of ZAP.
  94.        
  95.            The whole idea of these functions is that they work on either a 
  96.        single file (the highlighted one), or on a set of files (the marked 
  97.        or memorized files).  F1-3 are obvious normal functions.  Note that 
  98.        the delete and move operations are very fast.
  99.            F4 works like this: You enter any DOS command using a "@" 
  100.        character instead of an individual filename.  ZAP will sequentially 
  101.        replace the @ by each file that is selected.  
  102.            For example, let's say you have a set of files that you would 
  103.        like to have sorted.  You have a program called SORT which takes 
  104.        its first parameter as the source file and its second parameter as 
  105.        the destination file.  Now all you have to do to sort all these 
  106.        files is mark the ones you wish sorted (see below for how to mark 
  107.        files), press F4 and type the command:
  108.        
  109.        SORT @ _@
  110.        
  111.            What does this do?  ZAP will replace both "@"'s with the first file 
  112.        that is marked, thus from that file to a file which has the same 
  113.        name, but with a "_" as the first character.  This is because many 
  114.        such programs will not allow the source and destination files to 
  115.        have the exact same name.  After executing this command, ZAP will 
  116.        do it again with the second marked file, and so on.
  117.        
  118.            Note that by use of the ";" to separate commands, you can 
  119.        execute multiple commands on each file.  So if you wanted to have 
  120.        the destination names match the original ones, you might use:
  121.        
  122.        SORT @ temp; del @; ren temp @
  123.        
  124.            This will sort to the file named temp, remove the unsorted 
  125.        file, and rename the temp file to the original's name.  Again it 
  126.        will be executed sequentially for each marked file.
  127.        
  128.        
  129.        
  130.        > File Marking Procedures and Short-Cuts
  131.        
  132.            The most basic way to mark files is with the + key or right 
  133.        arrow key.  To unmark files, use the - or left arrow key.  As 
  134.        usual, the first letter can be used to jump to a filename quickly 
  135.        to mark or unmark it.  The following function keys also help out in 
  136.        marking files:
  137.        
  138.            F5 - clear all marks
  139.            F6 - mark all files
  140.            F7 - toggle all marks (reverse marked and unmarked files)
  141.  
  142.            shift-F5 - clear all marks below highlighted file
  143.            shift-F6 - mark all files below highlighted file
  144.            shift-F7 - toggle all marks below highlighted file
  145.        
  146.        
  147.        > The "Memorized Files"
  148.        
  149.            Here are just a few of some uses of ZAP's ability to memorize a 
  150.        list of files: 
  151.        
  152.        - Each time a command is executed, ZAP loses its list of marks.  
  153.        Obviously, if you want to process a list more than once, this would 
  154.        be terrible.  ZAP offers several alternatives to saving a list in 
  155.        memory or on disk. 
  156.        
  157.        - Marks can only mark the files in the current directory.  However, 
  158.        sometimes you want to operate on files in more than one directory 
  159.        in a single process.  By appending marked file's pathnames to the 
  160.        memorized list, you can effectively ZAP files in more than one 
  161.        directory. 
  162.        
  163.            The ZAP memory list allows up to 99 files to "memorized."  You 
  164.        can perform an F4-type function on the entire memorized list 
  165.        instead of on the current directory's marks.  To do this, just use 
  166.        F4, but then use "{@}" instead of "@".  [ NOTE: it's likely you 
  167.        actually want to use {$}- see the later section on other 
  168.        "meta-characters," below.
  169.        
  170.            The following command-keys perform various functions to the 
  171.        memorized list:
  172.        
  173.            F4- as explained- perform any command on the list.
  174.            ; - show the list on the screen
  175.            > - write the list to a file
  176.            < - read the list in from a file
  177.            @ - append the filenames of the marked files to the list
  178.            $ - append the PATHNAMES """"""  (includes directory)
  179.            _ - mark files in currently directory that are on the list
  180.            DEL - clear the list
  181.            * - toggle "save-mode" (see below)
  182.        
  183.        > Save-Mode
  184.        
  185.            Pressing grey-* switches between two different modes for the 
  186.        memorized list.  In save-mode, none of the above functions work.  
  187.        What save-mode does is this: before every command you execute, it 
  188.        automatically types: "DEL-$", and upon it's completion, types "_".
  189.        
  190.            This means that although ZAP usually loses its list of marks 
  191.        each time you execute a command, ZAP will use the memorized list to 
  192.        hold your marks for you while the command executes, and the 
  193.        re-install them to the greatest extent possible after your command 
  194.        completes.  (Note that your command may have deleted, moved, or 
  195.        re-named some of the files that were marked before.)  Save-mode 
  196.        will also preserve the position of the highlight bar though a 
  197.        command's execution.
  198.        
  199.        
  200.        > The Tilde-Directory
  201.        
  202.            Just as it can be handy to save a list of files, it can be 
  203.        very handy to save a directory name.  For example, say you want to 
  204.        move files from one sub-sub-sub-directory to another sub-sub-sub- 
  205.        directory.  Traditionally, this would take a lot of typing.  Not 
  206.        with ZAP!
  207.            Use ZAP's shortcuts for changing directories to move to the 
  208.        DESTINATION directory.  Now press "~".  Note in the bottom right 
  209.        hand corner of the screen, the new ~ directory is noted.
  210.            Now use the shortcuts to change to the SOURCE directory.  Mark 
  211.        your files, and press F3 to move them.  When ZAP asks for the 
  212.        destination directory, just press RETURN and it will default to the  
  213.        ~ directory you have set.
  214.        
  215.        
  216.        > The Many Meta-Characters of ZAP
  217.        
  218.            Already mentioned have been the two basic special characters 
  219.        for ZAP, @ and {@}.  However, their is a variety of different 
  220.        special characters that can be used in various contexts to make 
  221.        life much easier.  Here's a list:
  222.        
  223.        @ - F4 only; replaced sequentially by each marked file
  224.        @. - F4 only; """"""" without it's file-name extension
  225.        $ - F4 only; replaced sequentially by each marked file's PATH-NAME.
  226.        $. - F4 only; """"""" without it's path-name extension
  227.        {@} - F4 only; replaced sequentially by each memorized file's name
  228.        {$} - F4 only; replaced " " " " " " PATH-NAME
  229.        @@ - F4 only; replaced all in one go by a list of the filenames of 
  230.             the marked files, separated by spaces.  (useful for PKZIP!)
  231.        @, - F4 only; """""""""""""", separated by comma's.
  232.        
  233.        ~ - anywhere; replaced by the ~ directory
  234.        &X - anywhere; replaced by macro X [ see below ]
  235.        
  236.        Notes:
  237.            The ~ meta-char is the default input for any query for a 
  238.        pathname, but by using the character itself, you can make 
  239.        references to the ~ directory in F4 commands.
  240.        
  241.        > MACROS:
  242.        
  243.            What would any modern program be without built in macros?  In 
  244.        ZAP, macros serve the basic purpose of saving you typing, in two 
  245.        ways.  First, pressing an alt-letter at the menu will pass a macro 
  246.        automatically to the F4 function.   This means commonly executed F4 
  247.        functions need not be typed in each time they are used.
  248.            Secondly, anything you need to input to ZAP can have a macro 
  249.        replacement done on it.  So, for example, if you save a directory 
  250.        name to macro D, then to change to that directory quickly, press 
  251.        F9, and answer "&D" when asked for the new directory.
  252.        
  253.            To set a new macro value, press "&".  ZAP will ask for the 
  254.        letter of the macro to save to, and then for the value to save to 
  255.        it.  
  256.  
  257.            To permanently save your macros, see the section on "Setting 
  258.        Defaults," below.
  259.        
  260.            NOTE: Because it is more commonly useful to have a macro use the
  261.        current ~ directory at the time of its execution rather than to at 
  262.        its time of definition, the ~ and &x meta-characters will not work
  263.        when entering new macro values.
  264.  
  265.            NOTE: Macros are by default only 20 characters long.  
  266.        Obviously, that's not long enough to do many of the things you want 
  267.        to do with them.  However, if macro A is longer than 20 characters, 
  268.        the extra will automatically spill over into macro B.  This makes 
  269.        macro b useless, but means macro A can be almost as long as you 
  270.        like.  The same goes for each macro letter.
  271.        
  272.            NOTE: If you end your macro with a ";", it will press RETURN 
  273.        and execute itself automatically.  If you do not, the macro will be 
  274.        placed on the prompt line at the top of the screen, where you can 
  275.        add to or edit it before pressing return.
  276.  
  277.        > Mode Switches
  278.        
  279.            ZAP has several modes that can be turned on and off.  
  280.        
  281.        ctrl-b - beep mode - beeps whenever a sequential replacement of
  282.                             more than 1 item completes.
  283.        ctrl-c - color mode - see below
  284.        ctrl-q - quiet mode - usually ZAP lists each file as it works on 
  285.                              it.  If this slows things down too much or
  286.                              annoys you, this mode turns listing off.
  287.        ctrl-r - srt rev   - reverse the order of the current sort method
  288.        grey-* - Save-mode - see above
  289.        ctrl-t - type-mode - If on, ZAP will pause when a "view" is done.
  290.                             This is useful for using "type" as a viewer,
  291.                             otherwise the screen is immediately set back
  292.                             to the ZAP menu.  If your viewer has you press
  293.                             a key to exit, obviously type-mode goes off.
  294.        
  295.        ctrl-g - graphics mode:
  296.            If you have an EGA or VGA monitor, you can use the 43 or 52 
  297.        lines-per-screen modes.  Press ctrl-g to rotate though your 
  298.        available modes.  WARNING: unpredictable results may occur if you 
  299.        request a graphics mode not supported by your hardware!
  300.        
  301.  
  302.        > Setting defaults:
  303.        
  304.            The ~ directory will always default to the directory that ZAP 
  305.        is started in.  However, for many other ZAP items, you can set a 
  306.        value, and then save it into the ZAP program so that it will stay 
  307.        that way the next time you run ZAP.
  308.  
  309.            - The TYPE and EDIT programs
  310.            - All the "MODES" (above)
  311.            - All the macros
  312.            - The directory sort type.
  313.        
  314.            Use ctrl-x to change the TYPE and EDIT programs (in memory).
  315.        
  316.            If you press ctrl-u all the current settings for these items 
  317.        will be saved into the ZAP.COM file, and ZAP will start up with 
  318.        them the next time you run ZAP.
  319.        
  320.        
  321.        > Special features:
  322.        
  323.            There are several special functions built into ZAP, all of 
  324.        which are very fast, and can be very useful in certain 
  325.        circumstances.
  326.        
  327.        -- F8: switch ~ and current directories.  This is very useful when 
  328.        you're using one as the source and the other as a destination 
  329.        directory.  It also makes the ~ directory a very handy place 
  330.        to store a directory temporarily while you go off and do something 
  331.        else.
  332.        
  333.        -- ctrl-f: gives the number of kilo-bytes free on the indicated 
  334.        drive. 
  335.  
  336.        -- ctrl-k: after checking you're sure: delete all files in the
  337.        current directory (fast!).
  338.        
  339.        -- F10: changes the "mask"
  340.            Usually ZAP lists all the files in a directory.  If you want 
  341.        too see only all the ".COM" files, then you can set the mask to 
  342.        "*.COM".  Note the mask is also useful in type 3 sweeps (see 
  343.        below).
  344.        
  345.        -- ctrl-F2: CHOP DIRECTORY TREE
  346.        
  347.                 -=- This is a very dangerous command -=-
  348.  
  349.                 -=- It is FAST and DEADLY - it could wipe out huge numbers
  350.                     of files in less than a second -=-
  351.        
  352.            What it does is this: highlight a directory, and press ctrl-F2. 
  353.        Once you answer "Yes," all the files in that directory, and all the 
  354.        files in its sub-directories (recursively), and the directories 
  355.        themselves will be deleted.
  356.        
  357.            You may have seen some other programs to do this- try comparing 
  358.        ZAP's speed at it sometime.  I think you will be impressed.
  359.        
  360.        
  361.        -- ctrl-F9: locate file
  362.  
  363.            You enter a wildcard name (that's a filename with the * naming
  364.        convention), and ZAP will search every drive, starting at the current
  365.        one, from the root directory of each drive, for a file matching the
  366.        wildcard name you have entered.
  367.  
  368.        -- ctrl-F10: filename string search
  369.  
  370.            Same as F9, except instead of searching for a wildcard name,
  371.        you enter any text that can appear anywhere in a filename.  For
  372.        example, entering "FF" would be equivalent to searching for 
  373.        *FF*.*FF*, which isn't allowed under the normal DOS wildcard rules.
  374.  
  375.        -- ctrl-F4: sweep commands
  376.        
  377.            This is another very useful but rather complicated option.  
  378.        This allows you to run a command AT AND BELOW YOUR CURRENT 
  379.        DIRECTORY on either every directory or on every single file ZAP 
  380.        finds.
  381.        
  382.        type 1- runs the command once per each directory, first running the 
  383.        command, and then searching the children directories "depth-first."
  384.        
  385.        type 2- like type 1 except first searches the children directories 
  386.        recursively, and then executes the commands in each directory 
  387.        "bottom up."
  388.        
  389.        type 3- searches and executes like type 1, except that is runs 
  390.        your command individually on every file it finds on the tree.  As 
  391.        with F4, use "@" to be substituted for the filenames in the 
  392.        command.
  393.        
  394.        
  395.        -- the Colorizer (ctrl-c):
  396.        
  397.            This is a cute but occasionally useful feature.  ZAP has a 
  398.        formula that maps every different file extension to one of sixteen 
  399.        colors.  Note there are more than sixteen extensions, so there is 
  400.        replication.  However, with the colorizer turned on, different 
  401.        kinds of files show up in different colors, drawing your attention 
  402.        easily to the kinds of files you're looking for.  
  403.            Experiment with various different sorting for the directory 
  404.        (explained above), especially the by-extension sort, when playing 
  405.        with the colorizer.       
  406.        
  407.        -- Interrupting a sequence:
  408.        
  409.            At any time ZAP is doing a list of things, pressing any key or 
  410.        even just holding down the Ctrl key will interrupt ZAP at the 
  411.        completion of the current item in the sequence.  ZAP will then ask 
  412.        you if you would like to continue, stop, or "Shell" to Dos [see 
  413.        below].  This also works with +f2, +f4 and +f10.  Note however that 
  414.        the +F2 function is so fast you really do not want to depend on 
  415.        your reflexes to be able to stop it!       
  416.  
  417.  
  418.        > The Shell:
  419.        
  420.            ZAP is a very useful and complete utility.  However, it 
  421.        obviously does not do everything.
  422.        
  423.            It is the author's hope and intention that users will find ZAP 
  424.        useful and easy enough that they can use it on-top of COMMAND.COM as 
  425.        their standard DOS interface.  To further this goal, it is 
  426.        necessary that users be able to run other programs, and execute 
  427.        commands that ZAP does not handle by itself.  This is done by 
  428.        pressing "!".
  429.        
  430.            If you press "!" you will be asked for a DOS command.  If you 
  431.        would like to just do one command, go ahead and enter it.  It will 
  432.        be executed, and you'll be brought right back to ZAP.  If you would 
  433.        like to do more than one command, press RETURN, and ZAP will open a 
  434.        "shell."  That means that you'll be placed back at the DOS prompt, 
  435.        and able to type freely.  However, ZAP is still hiding in the 
  436.        background, and when you type EXIT(return) from DOS, you will go 
  437.        right back to ZAP, with everything the way it was when you left it 
  438.        (marks included if you have save-mode on).
  439.        
  440.            Note that macro and ~ meta-characters do work with "!".  Also, 
  441.        note that if an F4 command does not contain any sequential 
  442.        meta-characters, it is run once automatically, regardless of the 
  443.        number of currently marked files.  Thus, if you wish to execute a 
  444.        macro to run a program directly, just place it in a macro.
  445.        
  446.            By a "dos command," more than just simple requests like "DIR" 
  447.        are intended.  Any other program you would like to run can be run 
  448.        from the ZAP "!" command.  Note that ZAP will take some 51k of 
  449.        memory while it hides in the background.
  450.        
  451.        > Conclusion:
  452.        
  453.            Congradulations, you've made it to the end of this file.  Over 
  454.        400 lines worth.  I hope it was worth it.  I would like to take 
  455.        this space to thank the many "beta-testers" that have been 
  456.        extremely helpful in finding bugs and offering ideas for the 
  457.        expansion of ZAP.  Almost all of them say they have found ZAP has 
  458.        quickly become one of their most used programs, if not their 
  459.        permanent DOS interface.
  460.        
  461.            ZAP has taken a long time to put together, and as a full time 
  462.        student in computer science at the University of Illinois, time is 
  463.        not easy to come by.  I sincerely hope that the time I have spent 
  464.        on ZAP may make your computer usage easier and more efficient.  
  465.        However, I also request that if it does, that you support the 
  466.        "Shareware" software system, and heed this program's SHAREWARE 
  467.        license.  As boring as it may be, please read the file LICENSE.DOC, 
  468.        and follow it's instructions.
  469.        
  470.            I cannot guarantee that it will stay open forever, but while it 
  471.        is, any comments or suggestions are welcome at my e-mail address: 
  472.  
  473.                                    kds@uiuc.edu
  474.  
  475.        
  476.        
  477.                                     Enjoy ZAP!
  478.  
  479.  
  480.