home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / ff_tools.zip / manual.doc < prev    next >
Text File  |  1994-01-28  |  43KB  |  1,252 lines

  1.       
  2.  
  3.  
  4.  
  5.  
  6.       
  7.       
  8.       
  9.       
  10.       
  11.       
  12.       
  13.                                  Forefront Toolkit
  14.       
  15.       
  16.                                     Version 1.00
  17.       
  18.       
  19.       
  20.       
  21.       
  22.       
  23.       
  24.       
  25.       
  26.       
  27.       
  28.       
  29.                                 
  30.       
  31.       
  32.       
  33.       
  34.       
  35.       
  36.       
  37.       
  38.       
  39.                       Copyright  1993-94, Forefront Technology
  40.                                 ALL RIGHTS RESERVED
  41.                                           
  42.                                           
  43.                          Shareware Edition - January, 1994
  44.                                     
  45.       
  46.       
  47.  
  48.  
  49.  
  50.  
  51.                                     INTRODUCTION
  52.       
  53.       SYSTEM REQUIREMENTS
  54.       
  55.       DOS:
  56.       
  57.       An IBM AT Compatible PC, or PS/2 computer.
  58.       
  59.       384K RAM.
  60.       
  61.       DOS Version 3.3 to 6.2.
  62.       
  63.       OS/2:
  64.       
  65.       Standard or Extended Edition OS/2 1.21, 1.3 or
  66.       
  67.       OS/2 2.x
  68.       
  69.       
  70.       INSTALLATION
  71.       
  72.       You do not need to install the Forefront Toolkit on your hard disk to 
  73.       use the tools.  All of the tools can be run from the floppy drive.  If 
  74.       you want to install the tools on your hard disk you can follow this 
  75.       procedure to install them.
  76.       
  77.       To install the toolkit on your hard disk, first insert the Forefront 
  78.       Toolkit disk into drive A:.  Then create a directory for the toolkit 
  79.       and change to that directory.  Finally type:
  80.       
  81.       COPY A:*.*
  82.       
  83.       If you would like to use the tools from any directory on your hard 
  84.       disk, you will also need to add the toolkit directory to the PATH 
  85.       statement in the AUTOEXEC.BAT (DOS) or CONFIG.SYS (OS/2) file.
  86.       
  87.                
  88.  
  89.       
  90.  
  91.  
  92.  
  93.  
  94.                                  TABLE OF CONTENTS
  95.       
  96.       
  97.                                           
  98.       
  99.       INTRODUCTION...................................................2
  100.       
  101.          SYSTEM REQUIREMENTS.........................................2
  102.       
  103.          INSTALLATION................................................2
  104.       
  105.       TABLE OF CONTENTS..............................................3
  106.       
  107.       The TOOLKIT....................................................4
  108.       
  109.          ABOUT THE TOOLKIT...........................................4
  110.       
  111.          HOW TO GET HELP.............................................4
  112.       
  113.          ERROR LEVEL CODES...........................................4
  114.       
  115.          CONVENTIONS.................................................5
  116.       
  117.          DELALL......................................................7
  118.       
  119.          FF..........................................................9
  120.       
  121.          FS.........................................................13
  122.       
  123.          KILL.......................................................17
  124.       
  125.          TEE........................................................19
  126.       
  127.          ...........................................................19
  128.       
  129.          TOUCH......................................................20
  130.       
  131.          TS.........................................................22
  132.       
  133.       
  134.       
  135.                                
  136.  
  137.       
  138.  
  139.  
  140.  
  141.  
  142.                                     The TOOLKIT
  143.       
  144.       
  145.       
  146.       ABOUT THE TOOLKIT    
  147.       
  148.       The Forefront Toolkit is a collection bimodal tools that can be used 
  149.       for file management, program development, remote support, and batch 
  150.       file enhancement.  The tools in the kit fully support the OS/2 envi-
  151.       ronment; HPFS long file names, OS/2 protected mode operation, and DOS 
  152.       operation. 
  153.       
  154.       Since the tools are bimodal, they can run in OS/2, an OS/2 DOS Box, or 
  155.       real DOS. This is one of the most powerful features of the package. It 
  156.       means no more switching to DOS to search for a file or to search for 
  157.       text in a file.  Those of you who work sometimes in DOS and sometimes 
  158.       in OS/2, now can use just one set of tools instead of one set for DOS 
  159.       and another for OS/2.  
  160.       
  161.       
  162.       
  163.       
  164.       
  165.       
  166.       HOW TO GET HELP
  167.       
  168.       Each tool in the kit has an on-line summary screen which displays the 
  169.       tool's command-line usage, a brief description of each optional 
  170.       parameter, and a brief description of what the tool does.  To display 
  171.       the on-line help screen simply type the name of the tool you want help 
  172.       for followed by the '-?' parameter.  For example, to display the on-
  173.       line help screen for TS type:   
  174.       
  175.       TS  -?
  176.       
  177.       
  178.       
  179.       
  180.       
  181.       
  182.       ERROR LEVEL CODES
  183.       
  184.       The tools in the Forefront Toolkit are frequently used in batch files.  
  185.       So that you may determine the results of running one of the tools in 
  186.       the toolkit, all of the tools return ERRORLEVEL codes.  The following 
  187.       is a table of possible return codes that can be checked using the 
  188.       ERRORLEVEL test:
  189.       
  190.            0 - No errors occurred, the operation was successful.
  191.       
  192.            1 - Command-line arguments were invalid or missing.
  193.       
  194.            2 - Memory or other system resources could not be allocated.
  195.       
  196.            3 - Operator terminated operation by pressing <ESC>. 
  197.       
  198.            
  199.       
  200.       The following are extended codes that can be returned for some tools 
  201.       if the -X option is valid and specified when invoking them.             
  202.       
  203.            4 - Some files were not processed due to errors.
  204.       
  205.            5 - No matching files were found.
  206.       
  207.            6 - No matching text string was found.
  208.  
  209.       
  210.  
  211.  
  212.  
  213.  
  214.       
  215.            7 - Premature termination of delay by operator keypress.
  216.       
  217.            8 - No matching process running.
  218.       
  219.            9 - No unique process running.
  220.       
  221.            10 - Specified process is currently running.
  222.       
  223.            
  224.       
  225.       The -X option is valid for the following tools with the following 
  226.       possible extended return codes:
  227.       
  228.          DELALL 4, 5
  229.       
  230.          FF 5
  231.       
  232.          FS 5
  233.       
  234.          KILL 8, 9
  235.       
  236.          TOUCH 4, 5
  237.       
  238.          TS 4, 5, 6
  239.       
  240.          For more information about creating batch files using the ERROR-
  241.       LEVEL values see your OS/2 or DOS manual.
  242.       
  243.       
  244.       
  245.       
  246.       CONVENTIONS
  247.       
  248.       Each explanation for a tool is divided into several sections.  First 
  249.       is a few paragraphs on the operation and use of the tool.  Then come 
  250.       the  Caveats, Usage, Output, and Examples sections, as explained 
  251.       below.
  252.       
  253.       
  254.       
  255.       Caveats:
  256.       
  257.            Each tool has a Caveat section to describe warnings or limita-
  258.            tions on use of the tool. 
  259.       
  260.            
  261.       
  262.            
  263.       
  264.       Usage is:
  265.       
  266.            Each tool has a Usage section which describes the information 
  267.            which the tool needs in order to do its job.  It also describes 
  268.            how to format that information in a way the tool will recognize. 
  269.       
  270.            All tools which require filespecs allow up to ten of them.  If 
  271.            multiple filespecs are specified, and all of them have the same 
  272.            path and drive, then the operation of the tool occurs in one 
  273.            pass.  Otherwise, it occurs in multiple passes, i.e., one for 
  274.            each drive\path\filespec combination.
  275.       
  276.            Brackets [ ] enclose related parameters which are of two types:
  277.       
  278.            
  279.       
  280.  
  281.       
  282.  
  283.  
  284.  
  285.  
  286.          Required parameters
  287.            All parameters which must be included in order for a tool to work 
  288.            have been underlined in the tool's Usage section.
  289.       
  290.          Optional parameters
  291.            All parameters which need not be included in order for a tool to 
  292.            work have been enclosed with [ ] in the tool's Usage section.
  293.       
  294.            
  295.       
  296.            
  297.       
  298.       Output:
  299.       
  300.            Many tools have an Output section to show you what the output of 
  301.            the tool looks like and to explain what it means. 
  302.       
  303.            
  304.       
  305.            
  306.       
  307.       Examples:
  308.       
  309.            Most tools have a selection of examples to get you started and 
  310.            show you the possibilities. 
  311.       
  312.       
  313.       
  314.       
  315.  
  316.       
  317.  
  318.  
  319.  
  320.  
  321.       DELALL
  322.       
  323.            The DELALL tool searches some or all of the directory tree in 
  324.            order to find and delete the files and directories you have 
  325.            selected.  There is no way in either DOS or in OS/2 to delete all 
  326.            files in a directory and then delete the empty directory too.
  327.       
  328.            This tool deletes all files that are not open, locked, or write 
  329.            protected even if they have the System, Hidden, Read-only, or 
  330.            Archive attributes set.
  331.       
  332.            You may abort this utility, once it has started, by pressing the 
  333.            ESC key. The tool will ask you to confirm your decision.  Press 
  334.            the ESC key again to confirm.  Processing will stop as soon as it 
  335.            has finished deleting the current file or subdirectory.
  336.       
  337.            See also:  DEL (DOS or OS/2),
  338.       
  339.            
  340.       
  341.       Caveats:
  342.       
  343.            DELALL ignores all file attributes when deleting files.  This 
  344.            means that all hidden, archived, system, or read-only files 
  345.            which match the filespec will be deleted.
  346.       
  347.            All type-ahead keys are flushed from the keyboard buffer.
  348.       
  349.            Use extreme caution when using the -E option under OS/2 2.x.  
  350.            If you start from the root directory of the OS/2 2.x boot 
  351.            partition and specify a filespec from the root and the -E 
  352.            option, you may remove folders from the desktop.  This is 
  353.            because OS/2 2.x creates empty directories for each folder on 
  354.            the desktop.
  355.       
  356.            DELALL will not delete files that are locked or in use.  This 
  357.            means that files such as EA DATA. SF will not be deleted while 
  358.            running in OS/2.  This also means that you will not be able to 
  359.            remove directories if another process running under OS/2 is 
  360.            using the directory as it's default directory.
  361.       
  362.       
  363.       
  364.       Usage is:
  365.       
  366.            DELALL  [d:] [path] filespec  [options]  [ [ d:][path]filespec  ] 
  367.            ]
  368.       
  369.          Where:
  370.            [d:]    Is an optional letter of the disk drive to search. If you 
  371.            do not include it, the current drive will be used.
  372.       
  373.                    Drive option is invalid when the -A option is specified.
  374.       
  375.            [path]  Is an optional path to begin searching. If you do not 
  376.            include path, the current directory will be used, unless 
  377.            of course the -A option has been specified.
  378.       
  379.                    Path is invalid when the -A option is specified.
  380.       
  381.            filespecIdentifies the file(s) you want to delete. Filespec may 
  382.            include the * and ? wildcards in order to find all files 
  383.            which have the same kind of name. (Empty subdirectories 
  384.            will be removed when the '*' or '*.*' wildcards have been 
  385.            specified.)  
  386.       
  387.  
  388.       
  389.  
  390.  
  391.  
  392.  
  393.                    For HPFS filenames containing spaces, enclose the entire 
  394.            drive, path, and filespec in quotes, eg. "c:\mydir\my new 
  395.            data".  You can find out if a file system is HPFS by 
  396.            using the DISKINFO tool.
  397.       
  398.            [options]May be any of the following:
  399.       
  400.               -A   Search all drives (A: through Z:) for filespec.  This 
  401.               option starts at the root of each drive.  For safety, '*' 
  402.               and '*.*' wildcards are not valid with this option.
  403.       
  404.               -E   Remove empty subdirectories which are in the path.  If 
  405.               you want to remove subdirectories that are empty, but 
  406.               specify a filespec other than '*' or '*.*' then use this 
  407.               parameter.
  408.       
  409.               -T   Display totals only.
  410.       
  411.               -Q   Quiet mode.  Do not list the directories as they are 
  412.               being searched.    This option is useful when output is 
  413.               being piped to the OS/2 MORE command.   
  414.       
  415.               -X   Enable extended return codes.
  416.       
  417.               -Y   Answer 'YES' to all prompts.  This option is useful when 
  418.               DELALL is run from a batch file.
  419.       
  420.               -?   Display on-line help screen.
  421.       
  422.               
  423.       
  424.       Output:
  425.       
  426.            Since this utility could delete all files on your disk, as a 
  427.            safety precaution the first output of this utility is the ques-
  428.            tion asking if you are sure.  Press the Y key if you want to 
  429.            proceed.
  430.       
  431.            To let you know how far DELALL has progressed it names the files 
  432.            it deletes, and, as DELALL enters each new subdirectory to be 
  433.            searched, the path of the subdirectory will be displayed (unless 
  434.            the -Q option was specified).
  435.       
  436.            When it has finished, the utility displays the total number of 
  437.            files it has deleted, the number of bytes in those files, and the 
  438.            number of directories removed.
  439.       
  440.            Sample output screen:
  441.       
  442.            DELALL, Version 1.00, (C) 1993 Forefront Technology
  443.            DELete ALL files matching pattern *
  444.            Delete ... TEST\beta
  445.            Delete ... TEST\delall.MAP
  446.            Delete ... TEST\level12\delall.obj
  447.            Delete ... TEST\level12\delall.old
  448.            Remove ... TEST\level12
  449.            Remove ... TEST
  450.            
  451.            4 files deleted totaling 86,488 bytes.
  452.            2 directories removed.
  453.            
  454.       
  455.       
  456.       Examples:
  457.       
  458.       
  459.  
  460.       
  461.  
  462.  
  463.  
  464.  
  465.       
  466.            To delete all files on the floppy A: drive:
  467.       
  468.            DELALL A:\*.*
  469.            
  470.       
  471.            To delete all of the .BAK files in the current directory and all 
  472.            directories below the current one:
  473.       
  474.            DELALL *.BAK
  475.            
  476.       
  477.            To delete all of the .BAK files on the current disk:
  478.       
  479.            DELALL \*.BAK
  480.            
  481.       
  482.            To delete all of the .BAK files on all disk drives:
  483.       
  484.            DELALL *.BAK -A
  485.            
  486.       
  487.            To remove a previous version of some software package which 
  488.            resides on the C drive beginning in a directory called XYZSS, you 
  489.            could execute the following lines from a batch file:
  490.       
  491.            ECHO Now removing XYZ Super System. Please wait...
  492.            DELALL C:\XYZSS\* -Y -Q -T
  493.            CLS
  494.            ECHO XYZ Super System now removed.
  495.            
  496.       
  497.            To delete all files ending in .TXT from the current directory and 
  498.            all of its subdirectories, and remove any empty subdirectories:
  499.       
  500.            DELALL *.TXT -E   or   DELALL -E *.TXT
  501.            
  502.       
  503.            To delete all files ending in .BAK or .SAV in one pass:
  504.       
  505.            DELALL *.BAK  *.SAV 
  506.       
  507.       
  508.       
  509.  
  510.       
  511.  
  512.  
  513.  
  514.  
  515.       FF
  516.       
  517.            The FF tool searches some or all of the directory tree in order 
  518.            to find and display the directory locations of the files you have 
  519.            selected.
  520.       
  521.            FF ignores all file attributes when looking for matching files, 
  522.            so even hidden or system files will be found.
  523.       
  524.            You may abort this utility, once it has started, by pressing the 
  525.            ESC key. The tool will ask you to confirm your decision.  Press 
  526.            the ESC key again to confirm.  Processing will stop as soon as it 
  527.            has finished with the current file or subdirectory.
  528.       
  529.            
  530.       
  531.       Caveats:
  532.       
  533.            All type-ahead keys are flushed from the keyboard buffer.
  534.       
  535.            
  536.       
  537.       Usage is:
  538.       
  539.            FF  [d:] [path] filespec  [options]  [ [ d:] [path] filespec  ] ]
  540.       
  541.          Where:
  542.            [d:]    Is an optional letter of the drive to search. If you do 
  543.            not include it, the current drive will be used.
  544.       
  545.                    Drive is invalid when the -A option is specified.
  546.       
  547.            [path]  Is an optional path to begin searching. If you do not 
  548.            include path, the current directory will be used.
  549.       
  550.                    Path is invalid when the -A option is specified.
  551.       
  552.            filespecFilespec  may include the * and ? wildcards in order to 
  553.            find all files which have the same kind of name. 
  554.       
  555.                    For HPFS filenames containing spaces, enclose the entire 
  556.            drive, path, and filespec in quotes, eg. "c:\mydir\my new 
  557.            data".  You can find out if a file system is HPFS by 
  558.            using the DISKINFO tool.
  559.       
  560.            [options]May any of the following:
  561.       
  562.               -A   Search all drives (A: through Z:) for files.  This option 
  563.               starts the search at the root of each drive.
  564.       
  565.               -I   Display the ISO (International Standards Organization) 
  566.               sortable date format of YY/MM/DD.
  567.       
  568.               -P   Pause the display after each screen is filled.
  569.       
  570.               -Q   Quiet mode.  Do not display the directories as they are 
  571.               being searched.  This option is useful when output is 
  572.               being piped to the OS/2 MORE command.
  573.       
  574.               -X   Enable extended return codes.
  575.       
  576.               -?   Display the on-line help screen.
  577.       
  578.               
  579.       
  580.       Output:
  581.  
  582.       
  583.  
  584.  
  585.  
  586.  
  587.       
  588.            FF first displays a banner which tells you what filespec is being 
  589.            used in the search.  Remaining output is in four columns:
  590.       
  591.            The first column displays the date associated with the file.  It 
  592.            will be in MM/DD/YY form unless the -I option is specified.  In 
  593.            DOS there is only one date associated with a file and that date 
  594.            is the one FF displays.  In OS/2 there are three dates associated 
  595.            with each file.  They are Date Created, Date Last Accessed, and 
  596.            Date Last Written.  In OS/2 the date displayed is the Date Last 
  597.            Written.  This is consistent with the OS/2 DIR command.
  598.       
  599.            The second column lists the time associated with the file.  This 
  600.            is a twelve hour time with a 'p' suffix for P.M., and an 'a' 
  601.            suffix for A.M.  In DOS there is only one time associated with a 
  602.            file and that time is displayed.  In OS/2 there are three times 
  603.            associated with each file.  They are Time Created, Time of Last 
  604.            Access, and Time Last Written.  FF displays the Time Last Writ-
  605.            ten.  This is consistent with the OS/2 DIR command.
  606.       
  607.            The next column gives the size of the file in bytes, and the last 
  608.            column displays the pathname of the matching file.
  609.       
  610.            When all matching files have been found, FF displays the total 
  611.            number of files it found.
  612.       
  613.            Sample output with standard date format (Notice the HPFS format 
  614.            long names):
  615.       
  616.            FILE FIND, Version 1.00, (C) 1993 Forefront Technology
  617.            
  618.            FIND FILES matching pattern *.BAK
  619.            01/10/93  10:44p       30,481  \DeScribe\beta_notes_099.BAK
  620.            01/17/93  05:39p      147,347  \DeScribe\notes_for_docs.BAK
  621.            01/17/93  05:30p       27,164  \DeScribe\quick_reference.BAK
  622.            12/10/92  08:13p       10,148  \DeScribe\ideas\idea_list.BAK
  623.            
  624.            4 files found.
  625.       
  626.       
  627.       Examples:
  628.       
  629.            To find all files which match *.BAK on the current drive:
  630.       
  631.            FF  \*.BAK
  632.            
  633.       
  634.            To find all files which have "TOM" anywhere in the filename:
  635.       
  636.            FF  *TOM*
  637.            
  638.       
  639.            To find all files called "letter to tom" on an HPFS file system:
  640.       
  641.            FF  "letter to tom"
  642.            
  643.       
  644.            To find all .C and .H files on all drives: 
  645.       
  646.            FF  *.C  *.H  -A
  647.            
  648.       
  649.            To display all .DLL files on all drives, and pause the output 
  650.            after every screen full of names:
  651.       
  652.            FF  *.DLL  -P  -A
  653.  
  654.       
  655.  
  656.  
  657.  
  658.  
  659.      
  660.       
  661.       
  662.  
  663.  
  664.  
  665.  
  666.       FS
  667.       
  668.            The FS tool finds and displays both the actual file size and the 
  669.            allocated disk space of each file you have selected.  After all 
  670.            of the selected files have been processed, the utility shows 
  671.            total actual file size and allocated disk space for all displayed 
  672.            files.
  673.       
  674.            Most disk files have more space allocated to the file than there 
  675.            is data stored there.  Slack space is the difference between 
  676.            actual file size and allocated disk space.  
  677.       
  678.            FS ignores all file attributes when looking for matching files.  
  679.            This means that both System and Hidden files can be found.
  680.       
  681.            You may abort this utility, once it has started, by pressing the 
  682.            ESC key. The tool will ask you to confirm your decision.  Press 
  683.            the ESC key again to confirm.  Processing will stop as soon as it 
  684.            has finished with the current file or subdirectory.
  685.       
  686.            Related utilities are: FF.
  687.       
  688.            
  689.       
  690.       Caveats:
  691.       
  692.            FS does not display slack space in a DOS Box because the file 
  693.            system is virtual FAT (File Allocation Table), but the actual 
  694.            file system may be HPFS (High Performance File System) or 
  695.            other non-FAT file system.  If the actual file system is other 
  696.            than FAT, the slack space calculation in an internal DOS com-
  697.            puter would be misleading.  Slack space calculation in an 
  698.            external DOS Box (VM boot image) will be calculated normally 
  699.            but may also be incorrect if the underlying file system is 
  700.            other than FAT.
  701.       
  702.            All type-ahead keys are flushed from the keyboard buffer.
  703.       
  704.            
  705.       
  706.       Usage is:
  707.       
  708.            FS  [d:] [path] filespec  [options]  [ [ d:] [path] filespec  ] ]
  709.       
  710.          Where:
  711.            [d:]    Is an optional letter of the drive to search. If you do 
  712.            not include it, the current drive will be used.
  713.       
  714.                    Drive is invalid when the -A option is specified.
  715.       
  716.            [path]  Is an optional path to begin searching. If you do not 
  717.            include path, the current directory will be used.
  718.       
  719.                    Path is invalid when the -A option is specified.
  720.       
  721.            filespecFilespec may include the * and ? wildcards in order to 
  722.            find all files which have the same kind of name.
  723.       
  724.                    For HPFS filenames containing spaces, enclose the entire 
  725.            drive, path, and filespec in quotes, eg. "c:\mydir\my new 
  726.            data".  You can find out if a file system is HPFS by 
  727.            using the DISKINFO tool.
  728.       
  729.            [options]May be any of the following:
  730.       
  731.               -A   Search all drives (A: through Z:) for files.  This option 
  732.  
  733.       
  734.  
  735.  
  736.  
  737.  
  738.               starts the search at the root of each drive, and auto-
  739.               matically selects the -S option.
  740.       
  741.               -I   Include subtotals for each subdirectory.
  742.       
  743.               -P   Pause the display when the screen is full.
  744.       
  745.               -Q   Quiet mode.  Do not list the directories as they are 
  746.               being searched.   This option is useful in conjunction 
  747.               with the OS/2 MORE command.        
  748.       
  749.               -S   Include subdirectories in the search.
  750.       
  751.               -T   Display total file size, but do not display the size of 
  752.               individual files.  
  753.       
  754.               -X   Enable extended return codes.
  755.       
  756.               -?   Display on-line help screen.
  757.       
  758.               
  759.       
  760.       Output:
  761.       
  762.            FS first displays a banner which tells you what filespec is being 
  763.            sought.  The rest of the output is divided into two columns fol-
  764.            lowed by summary information.
  765.       
  766.            The first column displays the size in bytes of the matching file.  
  767.            This is the actual size of the file, not the amount of space 
  768.            allocated on the disk.
  769.       
  770.            The second column is the pathname of the matching file.
  771.       
  772.            The summary gives first the total number of bytes in all matching 
  773.            files, and the number of files that were found.  The next line is 
  774.            the slack space information.  Note that this line may not display 
  775.            if FS is run in a DOS Box. 
  776.       
  777.            Last is the drive information.  The first line displays the 
  778.            drive.  The next line displays the total number of bytes of disk 
  779.            space on the drive.  The last line displays the number of bytes 
  780.            available and the percentage of disk space available.
  781.       
  782.            
  783.  
  784.       
  785.  
  786.  
  787.  
  788.  
  789.            Sample output screen:
  790.       
  791.            FILE SIZE, Version 1.00, (C) 1993, Forefront Technology
  792.            
  793.            FILE SIZE of files matching pattern *.*
  794.                   3,326  CONFIG.LAP
  795.                  40,415  README
  796.                   3,588  CONFIG.BK$
  797.                     325  AUTOEXEC.BAT
  798.                   3,185  CONFIG.GWR
  799.                   3,027  CONFIG.WAS
  800.                   3,717  CONFIG.$SY
  801.                   3,185  CONFIG.WAL
  802.                      43  FS.OUT
  803.                 806,912  EA DATA. SF
  804.                   8,516  OS2LDR.MSG
  805.                   2,760  OS2DUMP
  806.                 734,366  OS2KRNL
  807.                  28,160  OS2LDR
  808.                      89  OS2VER
  809.                   1,099  OS2BOOT
  810.                     224  WP ROOT. SF
  811.                   1,784  IBMLVL.INI
  812.                   3,726  CONFIG.SYS
  813.            
  814.            Totals for all matching files
  815.                   1,648,447  total bytes used in 19 files.
  816.                   1,667,072  bytes disk space allocated, 1% slack space.
  817.            
  818.            Drive C: information
  819.              115,171,328 bytes total disk space.
  820.               37,142,528 bytes available, 32% of disk.
  821.            
  822.            
  823.       
  824.       
  825.       Examples:
  826.       
  827.            To find the size of all files in the current directory:
  828.       
  829.            FS  *.*
  830.            
  831.       
  832.            To find the size of all files on the A: drive and all of its 
  833.            subdirectories:
  834.       
  835.            FS  A:\*.*  -S
  836.            
  837.       
  838.            
  839.       
  840.            To find the size of all backup (*.BAK) files on all drives:
  841.       
  842.            FS  *.BAK  -A
  843.            
  844.       
  845.            To find the size of all files in a directory and all of its sub-
  846.            directories, and display subtotals for each subdirectory:
  847.       
  848.            FS  *.*  -S  -I
  849.       
  850.       
  851.       
  852.  
  853.       
  854.  
  855.  
  856.  
  857.  
  858.       KILL
  859.       
  860.            The KILL tool is available for OS/2 only.  It allows you to ter-
  861.            minate a process or program without having to use any of the 
  862.            menus or functions of that process or program.  Optionally you 
  863.            may kill a process and all of its child processes.  The ability 
  864.            to kill a process from outside that process is especially useful 
  865.            in program development when a programming bug has made it impos-
  866.            sible to terminate the process normally.
  867.       
  868.            This utility is also useful for remote program support to stop 
  869.            programs that you cannot switch to.
  870.       
  871.            In the interactive mode this tool displays a list of the entries 
  872.            in the OS/2 switch list.  You may select one item on that list to 
  873.            kill.  This is useful if you do not know the program's PID.
  874.       
  875.            Related OS/2 utilities: PSTAT and DETACH.
  876.       
  877.            
  878.       
  879.       Caveats:
  880.       
  881.            Use this tool with great care.  You must be sure that you have 
  882.            the right PID, as any data in the killed process or its chil-
  883.            dren may be lost.  Be sure to save to disk any memory- 
  884.            resident data in a program you want to kill.
  885.       
  886.            It is possible under OS/2 2.x to kill the Desktop.  If you do 
  887.            this, the Workplace Shell automatically starts back up in 30 
  888.            seconds.  When in doubt, use the interactive mode to reduce 
  889.            the chances of killing the Desktop or other OS/2 internal 
  890.            process.
  891.       
  892.            KILL assumes that if it got a successful operation status from 
  893.            OS/2 that the process was killed.  It is possible that KILL 
  894.            will not report an error and will not kill a process.  This 
  895.            can happen for two reasons:  One, the program being killed has 
  896.            installed a signal handling routine to perform cleanup when 
  897.            killed, and is either not done cleaning up, or is ignoring the 
  898.            signal (usually a programming bug).  Two, the program being 
  899.            killed is in the middle of a system call and can not be ter-
  900.            minated until it returns from that call.  Usually if KILL 
  901.            cannot kill a program then neither can the OS/2 task manager.
  902.       
  903.            Some processes (like the Workplace Shell) have multiple 
  904.            entries in the OS/2 internal switch list.  These entries can 
  905.            have the same PID if a different window handle is specified.  
  906.       
  907.       Usage is:
  908.       
  909.            KILL  pid  [options]
  910.       
  911.          Where:
  912.            [pid]   Identifies the process or program you want to stop.  The 
  913.            default format for PID is decimal.  Optionally you can 
  914.            use PSTAT format which is a hexadecimal number proceeded 
  915.            with '0x', i.e., 0x3c.   Hexadecimal process numbers can 
  916.            be determined by using the PSTAT  /C command.
  917.       
  918.            [options]May be any of the following:
  919.       
  920.               -N   Kill process by name.  Format for this option is 
  921.               -N:string where string is the process name of the process 
  922.               that you want to kill. 
  923.       
  924.  
  925.       
  926.  
  927.  
  928.  
  929.  
  930.               -T   Kill the entire process tree which starts with the parent 
  931.               process specified by the PID, including any process 
  932.               started from that parent or its children.
  933.       
  934.               -X   Enable extended return codes.
  935.       
  936.               -?   Display on-line help screen.
  937.       
  938.               
  939.       
  940.       Output:
  941.       
  942.            None in the command mode.
  943.       
  944.            In interactive mode a list of all programs in the OS/2 switch 
  945.            list.  
  946.       
  947.            KILL, Version 1.00, (C) 1993, Forefront Technology
  948.            
  949.            Entry:   15  Title: DeScribe 4.0:1
  950.            Entry:    8  Title: SWLIST.EXE
  951.            Entry:    4  Title: OS/2 2.0 Desktop
  952.            
  953.            Entry to kill or <ENTER> to abort:
  954.            
  955.       
  956.       
  957.       Examples:
  958.       
  959.            
  960.            This example uses the -N option to kill a process by name.  We 
  961.            will kill the process NNLINK as part of a command file that shuts 
  962.            down a communications session.
  963.            
  964.            ECHO Now terminating communications session...
  965.            KILL -N:NNLINK
  966.            CMSTOP
  967.            ...
  968.      
  969.       
  970.       
  971.  
  972.  
  973.  
  974.  
  975.             TEE
  976.            The TEE tool redirects the standard output of a given program to 
  977.            a file as well as to the standard output device.  This is useful 
  978.            for saving the output of a program to a file for later examina-
  979.            tion.  Output will be stored in the indicated file, and will be 
  980.            displayed on the screen as well.
  981.       
  982.            
  983.       
  984.       Caveats:
  985.       
  986.            Since TEE is invoked after a command, it there is an error in the 
  987.            TEE parameters the tool will beep and display an error message, 
  988.            then wait 5 seconds and continue to display the screen output of 
  989.            the command without routing the output to a file.
  990.       
  991.            
  992.       
  993.       Usage is:
  994.       
  995.            command  |  TEE  filename  [options]
  996.       
  997.          Where:
  998.            command Is the command which runs the program whose output you 
  999.            want to redirect.  The line of text will contain the name 
  1000.            of the program, plus any parameters necessary to run that 
  1001.            program.
  1002.            filenameIs the name of the file to which you want the output of 
  1003.            the command line directed.  
  1004.            [options]May be any of the following:
  1005.       
  1006.               -A   Append output to the existing contents of the file given 
  1007.               in filename, rather than writing over them.
  1008.       
  1009.               -?   Display on-line help screen.
  1010.       
  1011.       Examples:
  1012.       
  1013.            To capture the output of a compile to the ERR file:
  1014.       
  1015.            cl -DTEST -G2s test | TEE err
  1016.             
  1017.       
  1018.       
  1019.       
  1020.       
  1021.  
  1022.       
  1023.  
  1024.  
  1025.  
  1026.  
  1027.       TOUCH
  1028.       
  1029.            This tool allows you to change the time and date of matching 
  1030.            files or create a file of 0 bytes with the current time and date.  
  1031.            This utility is often used to trigger recompiles of programs or 
  1032.            modules, or to set time time/date of all files in a release.
  1033.       
  1034.            You can set the date or date/time of files with TOUCH.  By 
  1035.            default TOUCH uses the current date and time unless the -D and -T 
  1036.            parameters are used.  The -D and -T parameters allow you to 
  1037.            specify a date and time to use when touching files.
  1038.       
  1039.            If you specify a single file to touch and that file does not 
  1040.            exist, then TOUCH will create it as a zero length file with the 
  1041.            specified or current date.  This feature is to maintain compat-
  1042.            ibility with other TOUCH utilities.
  1043.       
  1044.            You may abort this utility, once it has started, by pressing the 
  1045.            ESC key. The tool will ask you to confirm your decision.  Press 
  1046.            the ESC key again to confirm.  Processing will stop as soon as it 
  1047.            has finished with the current file or subdirectory.
  1048.       
  1049.            
  1050.       
  1051.       Caveats:
  1052.       
  1053.            All type-ahead keys are flushed from the keyboard buffer.
  1054.       
  1055.            
  1056.       
  1057.       Usage is:
  1058.       
  1059.            TOUCH  [d:][path] filspec  [options]  [ [ d:] [path] filespec  ] 
  1060.            ]
  1061.       
  1062.          Where:
  1063.            [d:]    Is the letter of the drive to search. This is optional. 
  1064.            If you do not include it, the current drive will be used.
  1065.       
  1066.                    Drive is invalid when the -A option is specified.
  1067.       
  1068.            [path]  Is an optional path to begin searching. If you do not 
  1069.            include path, the current directory will be used.
  1070.       
  1071.                    Path is invalid when the -A option is specified.
  1072.       
  1073.            filespecFilespec may include the * and ? wildcards in order to 
  1074.            find all files which have the same kind of name. 
  1075.       
  1076.                    For HPFS filenames containing spaces, enclose the entire 
  1077.            drive, path, and filespec in quotes, eg. "c:\mydir\my new 
  1078.            data".  You can find out if a file system is HPFS by 
  1079.            using the DISKINFO tool.
  1080.       
  1081.            [options]May be any of the following:
  1082.       
  1083.               -A   Search all drives (A: through Z:) for filespec.  This 
  1084.               option starts the path at the root of each drive.  Using 
  1085.               this option automatically selects the -S option.
  1086.       
  1087.               -D   Set the date from parameters supplied on the command 
  1088.               line, eg. -DMM/DD/YY where MM is the desired month, DD 
  1089.               the desired date, and YY the desired year.
  1090.       
  1091.               -Q   Quiet mode.  Do not list the directories as they are 
  1092.               being searched.       
  1093.  
  1094.       
  1095.  
  1096.  
  1097.  
  1098.  
  1099.       
  1100.               -S   Include subdirectories.
  1101.       
  1102.               -T   Set the time from parameters supplied on the command 
  1103.               line, eg. -THH:MM where HH is the desired hour, and MM is 
  1104.               the desired minute.  This option is only valid when the 
  1105.               -D option has been specified previously on the command 
  1106.               line.
  1107.       
  1108.               -X   Enable extended return codes.
  1109.       
  1110.               -?   Display on-line help screen.
  1111.       
  1112.       
  1113.       
  1114.       Examples:
  1115.       
  1116.            [C:\]touch *.bat -a
  1117.            TOUCH, Version 1.00, (C) 1993, Forefront Technology
  1118.            
  1119.            TOUCH files matching pattern *.BAT using 01/18/93 16:39
  1120.            C:\AUTOEXEC.BAT
  1121.            D:\AUTOEXEC.BAT
  1122.            D:\OS2\MDOS\HELP.BAT
  1123.            
  1124.            3 files found.
  1125.            3 files touched.
  1126.            
  1127.            [C:\]touch *\help.bat -a -d01/18/93 -t01:01
  1128.            TOUCH, Version 1.00, (C) 1993, Forefront Technology
  1129.            
  1130.            TOUCH files matching pattern HELP.BAT using 01/18/93 01:01
  1131.            D:\OS2\MDOS\HELP.BAT
  1132.            
  1133.            1 file found.
  1134.            1 file touched.
  1135.       
  1136.       
  1137.       
  1138.  
  1139.  
  1140.  
  1141.  
  1142.       TS
  1143.       
  1144.            This tool allows you to search the specified files for the 
  1145.            specified text.  This utility is used mostly by programmers to 
  1146.            find certain functions or variables in a group of program files. 
  1147.       
  1148.            TS first determines if the file being searched is binary or plain 
  1149.            text, then it searches the file for the text.  If the text is 
  1150.            found, it is displayed on the screen.  If the file is binary, as 
  1151.            much of the text string is displayed as is printable and the byte 
  1152.            offset in the file is displayed.  If the file is ASCII text, then 
  1153.            the line containing the text is displayed and the line number is 
  1154.            displayed.  
  1155.       
  1156.            You may abort this utility, once it has started, by pressing the 
  1157.            ESC key. The tool will ask you to confirm your decision.  Press 
  1158.            the ESC key again to confirm.  Processing will stop as soon as TS 
  1159.            has finished with the current file or subdirectory. 
  1160.       
  1161.                       
  1162.       Caveats:
  1163.       
  1164.            All type-ahead keys are flushed from the keyboard buffer.
  1165.       
  1166.            
  1167.       
  1168.       Usage is:
  1169.       
  1170.            TS  text  [d:][path] filspec  [options]  [ [ d:] [path] filespec  
  1171.            ] ]
  1172.       
  1173.          Where:
  1174.            text    Is the string of characters you want to find.  If there 
  1175.            is more than one word in text, you must enclose it in 
  1176.            quotes, eg., "My search string.".
  1177.                    If the search text is entered on the command line, there 
  1178.            is no way to include quotes (") in the search text as 
  1179.            they will be stripped off by the command processor.  If 
  1180.            you need to include quotes in the search text, use the 
  1181.            interactive mode.
  1182.       
  1183.            [d:]    Is the letter of the drive to search. This is optional. 
  1184.            If you do not include it, the current drive will be used.
  1185.       
  1186.                    Drive is invalid when the -A option is specified.
  1187.       
  1188.            [path]  Is an optional path to begin searching. If you do not 
  1189.            include path, the current directory will be used.
  1190.       
  1191.                    Path is invalid when the -A option is specified.
  1192.       
  1193.            filespecFilespec may include the * and ? wildcards in order to 
  1194.            find all files which have the same kind of name. 
  1195.       
  1196.                    For HPFS filenames containing spaces, enclose the entire 
  1197.            drive, path, and filespec in quotes, eg. "c:\mydir\my new 
  1198.            data".  You can find out if a file system is HPFS by 
  1199.            using the DISKINFO tool.
  1200.       
  1201.            [options]May be any of the following:
  1202.       
  1203.               -A   Search all drives (A: through Z:) for path\filespec.  
  1204.               This option starts the path at the root of each drive, 
  1205.               and is ignored if the filespec is *.*.  Using this option 
  1206.               automatically selects the -S option.
  1207.       
  1208.  
  1209.       
  1210.  
  1211.  
  1212.  
  1213.  
  1214.               -C   Case sensitive.  Text must match exactly including case 
  1215.               of characters.  By default the match ignores case.
  1216.       
  1217.               -F   Display filename only.  Specifying this option will dis-
  1218.               play only the filename of the files that contain the 
  1219.               text, not the line number or offset to the text.
  1220.       
  1221.               -I   Enable interactive mode.  When displaying text in inter-
  1222.               active mode, you are presented with a screen containing 
  1223.               the 5 lines above and below the line containing the text 
  1224.               string.  The text string will be displayed in reverse 
  1225.               video to highlight it's position in the match line.
  1226.       
  1227.               -P   Pause the display when each screen is full.
  1228.       
  1229.               -Q   Quiet mode.  Do not list the directories as they are 
  1230.               being searched.       
  1231.       
  1232.               -S   Include subdirectories in the search.
  1233.       
  1234.               -X   Enable extended return codes.
  1235.       
  1236.               -?   Display an on-line help screen. 
  1237.       
  1238.               
  1239.       
  1240.       Examples:
  1241.       
  1242.            [C:\]ts path *.bat -a -s
  1243.            TEXT SEARCH, Version 1.00, (C) 1993, Forefront Technology
  1244.            
  1245.            Find files matching pattern *.BAT that contain text "PATH"
  1246.            
  1247.            C:\AUTOEXEC.BAT(2) PATH=C:\DOS;C:\SYMAX;
  1248.            D:\AUTOEXEC.BAT(5) PATH D:\OS2;D:OS2\MDOS;D:\OS2\MDOS\WINOS2;
  1249.            
  1250.            2 occurrences of PATH found in 2 files.
  1251.            
  1252.